Skip to content

Performance Optimization

Making LangCalc faster and more memory efficient.

Memory Optimization

  • Choose appropriate max_length
  • Use augmentation vs projection wisely
  • Stream large corpora

Query Optimization

  • Cache suffix arrays
  • Batch predictions
  • Use appropriate top_k values

Profiling

Use pytest benchmarks and cProfile.

This page is under construction.