Skip to content
Discussion options

You must be logged in to vote

Use primitives > wrappers (avoid boxing)
Avoid unnecessary objects (reduce GC)
Prefer StringBuilder over String concat
Use efficient collections (ArrayList > LinkedList)
Tune GC → G1 Garbage Collector / Z Garbage Collector
Minimize synchronization (use concurrent utils)
Use streams carefully (avoid in hot paths)
Reuse objects / pooling (when needed)
Lazy initialization (load only when required)
Profile first (JMH, VisualVM)

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant