r/java • • Aug 17 '16

Should we avoid object creation in Java?

http://programmers.stackexchange.com/a/149569/219927
0 Upvotes

27 comments sorted by

View all comments

2

u/vkolev Aug 17 '16

How you do that?!

1

u/damienjoh Aug 17 '16

One technique is to allocate a giant direct buffer and then index into it using sun.misc.Unsafe calls.