Showing posts with label string-interning. Show all posts
Showing posts with label string-interning. Show all posts

Friday, January 13, 2012

String.intern() vs manual string-to-identifier mapping?


I recall seeing a couple of string-intensive programs that do a lot of string comparison but relatively few string manipulation, and that have used a separate table to map strings to identifiers for equality efficiency and memory use, e.g.: