Skip to content

Better spritelist in operator#1378

Merged
einarf merged 1 commit intopythonarcade:developmentfrom
alejcas:spritelist/in
Nov 2, 2022
Merged

Better spritelist in operator#1378
einarf merged 1 commit intopythonarcade:developmentfrom
alejcas:spritelist/in

Conversation

@alejcas
Copy link
Member

@alejcas alejcas commented Nov 2, 2022

As reported on #1377 this just adds SpriteList.__contains__ so sprite in spritelist gets O(1) instead of O(n).

@einarf einarf merged commit ce8164e into pythonarcade:development Nov 2, 2022
@alejcas alejcas deleted the spritelist/in branch November 2, 2022 17:37
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