1.Presizing collections
2.Using Singleton
3.Reusing exceptions
4.Pool management
5.Using thread locals
6.Using weak references
7.Using primitive type collections
8.Enumerating constants
9.Flyweight pattern
10.Using chars instead of Strings
11.Lazy initialization
Every point will be presented in the form:
How we usually do
How we should do to achieve no GC and trade offs
Measurement results"
9 июл 2024