Hacker News new | ask | show | jobs
by rmprescott 3711 days ago
Two simple suggestions:

The author mentioned reading in files with x "number of lines". If they are then parsing the lines into some structured format, there are likely many opportunities to look for low cardinality aspects and to reduce object tenuring by pooling strings using either String.intern or a hashset.

They should also consider increasing the eden size.

1 comments

it's been a really, really, long time since i've read something about computers and been completely and utterly baffled by what i saw.

thanks for making me feel young again.