DJB hashing has entered in r326091 (https://reviews.llvm.org/D43615), for performance purposes (as described in the commit message). I am unaware of a reason for not to replace the StringRef's default hashing algorithm with DJB, instead of using it specifically for StringMap. Using StringRef as the Key for DenseMap should have the same performance boost.
Details
Details
Diff Detail
Diff Detail
Event Timeline
Comment Actions
This change looks sensible but I'd like to verify the performance impact. Could you provide some numbers that compare performance before and after the change?