3 ms·
This is very cool. So could this finally make efficient switch() statements with string keys a reality?
by sytelus 8y ago
This is very cool. So could this finally make efficient switch() statements with string keys a reality?
- xxs 8y agojava switch/case impl. is hash based but it includes equals as well. Perfect hashing might work for short string but overall it won't be a major improvement to contents check (one deference)