Skip to content

Performance: Cache Aho-Corasick trie to reduce initialization time #11

Description

@master-wayne7

Building the trie for large datasets (~55K words) can take noticeable time during initialization.

Goal:

  • Cache the constructed trie locally
  • Reload it on app restart instead of rebuilding

Possible Approaches:

  • Serialize trie to local storage
  • Use binary encoding or JSON
  • Cache in memory (if applicable)

Expected Outcome:

  • Faster startup time
  • Init method should complete in milliseconds after first run

This will significantly improve user experience.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions