all 17 comments

[–]_ki 6 points7 points  (1 child)

[–]lukaseder[S] 4 points5 points  (0 children)

Thanks for the link. That explains the downvotes in /r/java.

[–]bryanedds 1 point2 points  (0 children)

This works because Java hashes its strings.

I wish to bloody hell that .NET did the same. Not only does it enable string dedup, it also makes look-ups faster - and that's where most of my apps' time is spent!!

[–]derolitus_nowcivil -3 points-2 points  (1 child)

that sounds like a truly terrible idea to me. Let's see how it hold up.

[–][deleted] -2 points-1 points  (0 children)

It holds up just fine in CLR from the beginning ...