January 11, 2014 stringpool / string interning | ||||
---|---|---|---|---|
| ||||
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? |
Copyright © 1999-2021 by the D Language Foundation