Skip to content

Terrato

Choose a tag to compare

@benmoran56 benmoran56 released this 24 Jan 05:33

esper 3.4-3.6

Performance-focused release with major internal optimizations.

Changes

  • Optimized get_components to iterate over the smallest set of entities, drastically speeding up queries with rare components.
  • Implemented lazy cache invalidation to reduce overhead from frequent entity modifications.
  • Sped up get_processor and remove_processor to be constant time (O(1)) operations.
  • Minor performance improvements to entity creation and deletion routines.
  • Expanded Benchmarks.
  • Add a new try_remove_component function as a convenience instead of (has_component + remove_component).
  • Start migrating type hints to the modern syntax.
  • esper.remove_handler should use a reference instead of direct object comparison. (#107)