Skip to content

Optimization: only rebuild the spatial hash when necessary#1598

Merged
einarf merged 1 commit intopythonarcade:developmentfrom
pushfoo:make_enabling_spatial_hashing_idempotent
Mar 2, 2023
Merged

Optimization: only rebuild the spatial hash when necessary#1598
einarf merged 1 commit intopythonarcade:developmentfrom
pushfoo:make_enabling_spatial_hashing_idempotent

Conversation

@pushfoo
Copy link
Member

@pushfoo pushfoo commented Mar 2, 2023

This PR separates the changes below from the larger SpriteList doc rewrite:

  • Add int type annotation to function signature
  • Make the spatial hash recreate only when it doesn't exist or has different cell size

* Add int type annotation to function signature

* Make the spatial hash recreate only when it doesn't exist or has different cell size
@einarf einarf merged commit 353bd7f into pythonarcade:development Mar 2, 2023
@pushfoo pushfoo deleted the make_enabling_spatial_hashing_idempotent branch March 2, 2023 22:34
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.

2 participants