Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

So strings don’t get hash code at compile time?

At first I thought the article was describing something similar to Ruby’s symbols



> 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.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: