-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Improved performance of Autocomplete
- Optimized the Autocomplete class for improved speed and efficiency. - Created a new dictionary to map similar names to their true names for faster lookups. - Updated the get_suggestion method to use the new dictionary, reducing the need to iterate over all data items. - Moved the creation of the new dictionary to the load_data method to avoid unnecessary computations in get_suggestion. + Other minor changes.
- Loading branch information
1 parent
9d247ea
commit d8be0f2
Showing
1 changed file
with
43 additions
and
33 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters