This also adds a new API json_global_set_string_hash() which permits to select the hash function. The default one is the only one that was previously present. So there are no changes to existing apps, and the new hash function needs to be explicitely be opted in. Especially for smaller strings, the perllike functions seems to be around twice as fast as the other one, with similarly good results in value distribution.
8.7 KiB
8.7 KiB