digitalmars.D.learn - stringpool / string interning
- qznc (6/6) Jan 11 2014 I would like to efficiently compare lots of strings. The usual
I would like to efficiently compare lots of strings. The usual approach is String-interning as Java calls it. After a string is "interned" they can be compared via just a single pointer comparison instead of comparing char by char. I have not found anything like that in Phobos. Somebody already implemented something like this?
Jan 11 2014