3 ms·
So strings don’t get hash code at compile time? At first I thought the article was describing something similar to Ruby’s symbols
by jbverschoor 1y ago
So strings don’t get hash code at compile time?
At first I thought the article was describing something similar to Ruby’s symbols
- chii 1y ago> So strings don’t get hash code at compile time? only strings that are known at compile time could possibly be compile-time hashed? But the article is talking about strings in a running program. The performance improvements can apply to strings that are constants, but is created at run time.