I have not found anything like that in Phobos. Somebody already implemented something like this?
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.