3 ms·
https://github.com/Arquivotheca/SunOS-4.1.3/blob/413/sys/sparc/copy.s#L1602 https://github.com/Arquivotheca/SunOS-4.1.3/blob/413/sys/spa... and here I am lazil
by winrid 4y ago
https://github.com/Arquivotheca/SunOS-4.1.3/blob/413/sys/sparc/copy.s#L1602 https://github.com/Arquivotheca/SunOS-4.1.3/blob/413/sys/spa...
and here I am lazily blowing cache lines with `new Object()` in Java
- xbar 4y agoSuch gluttony!
- pjmlp 4y agoYeah, but you should use something like JITWatch as well, not all news turn into heap allocations. Unfortunately value types are years away, if they ever land.
- shagie 4y agoThe "if you want to get into it..." - Escape Analysis in the HotSpot JIT Compiler - https://blogs.oracle.com/javamagazine/post/escape-analysis-in-the-hotspot-jit-compiler https://blogs.oracle.com/javamagazine/post/escape-analysis-i... If you can prove that that a particular value never escapes the scope, it may be possible to allocate it on the stack instead which also reduces the amount of garbage collection needed later. And other related reading: https://web.archive.org/web/20120214195433/http://www.ibm.com/developerworks/java/library/j-jtp09275/index.html https://web.archive.org/web/20120214195433/http://www.ibm.co... https://www.javaadvent.com/2020/12/seeing-escape-analysis-working.html https://www.javaadvent.com/2020/12/seeing-escape-analysis-wo...
- winrid 4y agoCorrect. I had to make it concise for the joke, though. :)
- andirk 4y agoIt even looks funny in words. Like "equals a new thing!"