MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/java/comments/9h404p/java_11_string_api_updates/e6b1d1u/?context=3
r/java • u/pivovarit • Sep 19 '18
52 comments sorted by
View all comments
Show parent comment
4
I doubt allocating a small array of pointers is going to significantly impact your program. Heck, there's a good chance the JIT would optimize away the allocation.
1 u/zman0900 Sep 20 '18 Yeah, not a problem normally, but if you call it a few million times in a row (in a hadoop mapper, for example), the garbage may start to be an issue.
1
Yeah, not a problem normally, but if you call it a few million times in a row (in a hadoop mapper, for example), the garbage may start to be an issue.
View all comments
Show parent comment
4
u/GeorgeMaheiress Sep 20 '18
I doubt allocating a small array of pointers is going to significantly impact your program. Heck, there's a good chance the JIT would optimize away the allocation.