Skip to content

constructionSites scan fewer objects#141

Open
asquared31415 wants to merge 1 commit intoscreeps:masterfrom
asquared31415:csites
Open

constructionSites scan fewer objects#141
asquared31415 wants to merge 1 commit intoscreeps:masterfrom
asquared31415:csites

Conversation

@asquared31415
Copy link

Instead of scanning all objects that the user has visibility on and checking their type, use the register that has been pre-sorted by type already. This means a maximum of 100 objects are scanned, rather than potentially thousands or tens of thousands.

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.

1 participant