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

Aligning with changes in jellyfish library #4

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

matalab
Copy link

@matalab matalab commented Oct 4, 2024

The jellyfish library has undergone significant changes recently, including a switch to a Rust-based implementation for its algorithms. This change has led to performance regressions in certain functions, as reported by users.
Performance Regression: The switch to Rust has caused performance issues in some functions, such as the Hamming distance calculation. Users have reported substantial slowdowns compared to the previous C-based implementation4
Changes in Function Names: The library has also renamed some functions for consistency. For example, jaro_winkler has been deprecated in favor of jaro_winkler_similarity to match the naming convention of other functions3

In that context, it is best to switch to Rapidfuzz jarowinkler implemetation.

#from jellyfish import jaro_winkler_similarity # Slow in new jellyfish implementation
"""
Rapidfuzz replacement for jellyfish
https://github.com/rapidfuzz/JaroWinkler
pip install jarowinkler
"""
from jarowinkler import jarowinkler_similarity as jaro_winkler_similarity # Rapidfuzz efficient replacement for Jellyfish

jellyfish library recently changed function name from jarro_winkler to jarro_winkler_similarity
Jellyfish library recently swithced to Rust implementation, consequently suffering performance issues.
Therefore, it is best to switch to Rapidfuzz Jarowinkler implementation instead.

from jarowinkler import jarowinkler_similarity as jaro_winkler_similarity 

Can be installed from 
https://github.com/rapidfuzz/JaroWinkler
pip install jarowinkler
Some minor changes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant