mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-04-02 12:32:55 +00:00

- Don't ape java.lang.String's bogo-sampling hash function for "long" (>=16 char) strings. - Theory and practice comment in jsdhash.h helps analyze when to use double hashing (most of the time) vs. when to use chaining. - Subroutine ChangeTable from JS_DHashTableOperate so it can be called from JS_DHashTableEnumerate, if the latter finds that enough entries have been removed to be worth a shrink or compress cycle.