2 ms·
Heap memory allocation can be very slow. Reducing the number of allocations is often a fantastic way to get very significant speed ups. Using an integer to ide
by IshKebab 3y ago
Heap memory allocation can be very slow. Reducing the number of allocations is often a fantastic way to get very significant speed ups.
Using an integer to identify strings is very common in parsers - it's called "string interning".