Skip to content

Changes

Summary

  1. Minor (~2%) increase in cache hit rate (details)
Commit 7a405918f4fdf71ebc2a8b07ce3f6fb09f987c0a by jonathan
Minor (~2%) increase in cache hit rate

By including length in the hash function.

I tried various changes including 2048 cache size, or not replacing conflicts. Larger did not give a hit rate improvement commensurate to the extra size, and not replacing conflicts led to a significant drop to the hit rate.
The file was modified src/main/java/org/jsoup/parser/CharacterReader.java (diff)