Skip to content
Better HN
Top
New
Best
Ask
Show
Jobs
Search
⌘K
undefined | Better HN
0 points
chopin
3y ago
0 comments
Share
Afaik, a malloc is not guaranteed to return fast. With those requirements it's hard even in C.
0 comments
default
newest
oldest
cozzyd
3y ago
Right but you would typically use a preallocated arena.
chii
3y ago
but if you're going to do that, the same could be done with java, with less pain for the remaining parts of the application that does not require such methods of memory allocation.
cozzyd
3y ago
My Java is rusty, does Java provide things like placement new that make using arenas ergonomic?
1 more reply
j
/
k
navigate · click thread line to collapse