Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add caching for mimedata comparison #282

Merged
merged 4 commits into from
Apr 21, 2017
Merged

Add caching for mimedata comparison #282

merged 4 commits into from
Apr 21, 2017

Commits on Apr 20, 2017

  1. Add caching for mimedata comparison

    It seems that with the hierarchical algorithm we end up comparing the
    same things several times. Due to their low level in the hierarchy, and
    comparatively large size, MIME data comparisons are especially affected
    by this. For this reason, we simply add a LRU cache on the comparison.
    vidartf committed Apr 20, 2017
    Configuration menu
    Copy the full SHA
    c66c50b View commit details
    Browse the repository at this point in the history
  2. Cleanup/adjustments

    vidartf committed Apr 20, 2017
    Configuration menu
    Copy the full SHA
    ce8e5b7 View commit details
    Browse the repository at this point in the history
  3. Fixes test error + further optimization

    We can only cache string type mime data comparisons (hashable). Also
    added a cache on compare_text_approximate, as profiling showed that a
    hash there gives a reasonable amount of hits.
    vidartf committed Apr 20, 2017
    Configuration menu
    Copy the full SHA
    4e8b96a View commit details
    Browse the repository at this point in the history

Commits on Apr 21, 2017

  1. Configuration menu
    Copy the full SHA
    a5f5423 View commit details
    Browse the repository at this point in the history