Hi Andrej, On 18/01/2019 14:03, Andrej Golovnin wrote:
Is creating new Optionals a real problem? And before you answer please remember what Donald Knuth said: The real problem is that programmers have spent far too much time worrying about efficiency in the wrong places and at the wrong times; premature optimization is the root of all evil (or at least most of it) in programming. ;-)
Right - here is a better implementation anyway: http://cr.openjdk.java.net/~dfuchs/webrev_8216561/webrev.02/ best regards, -- daniel
Best regards and have a nice weekend, Andrej Golovnin