News for hackers. Stuff that matters.
Re:Java 27 Released by someone_19 on Wednesday September 16, 2026 @06:14AM (#49724308)
> I have seen it mentioned everywhere, but is this actually true?

Yes, it just adding or subtraction int to stack pointer register. I’m not certain, but the only thing that might be faster is accessing data at a fixed address - that is, global variables.

Re:Java 27 Released by gf000 on Wednesday September 16, 2026 @09:43AM (#49726938)
That's the way of getting the address itself, that's unrelated to how fast the actual memory read/write is.

Stack is fast because it is frequently "touched" staying in cache. If you were to continuously read write a small segment of the heap, I don't think it would fair any worse than "the stack". This was my point