Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make logic resolving 4x faster and allow CI codes for stages #166

Merged
merged 6 commits into from
Sep 10, 2024

Conversation

black-sliver
Copy link
Owner

@black-sliver black-sliver commented Sep 7, 2024

Not all code comparisons were case-insensitive (CI). Also adds tests, primarily for CI.
Introduces an object cache that could change behaviour in some packs but shouldn't.
Replaces list<> by vector<> for code and adds an extra set that contains all lower case codes for faster checking.

Testing if vector<> for _ciAllCodes would be better was not done yet (TODO).

Allows to opt into deferred logic updates via

if Tracker.AllowDefferedLogicUpdate == false then
     Tracker.AllowDefferedLogicUpdate = true
end

to run fewer logic updates (currently only uses when switching from bulk update back to normal update).

Not all code comparisons were case-insensitive (CI).
Also adds tests, primarily for CI.
Introduces an object cache that could change behaviour in some packs but shouldn't.
Replaces list<> by vector<> for code.

Testing if vector<> for _ciAllCodes would be better was not done yet (TODO).
@black-sliver black-sliver force-pushed the improve-performance branch 2 times, most recently from 2d9056b to 958df39 Compare September 7, 2024 20:08
@black-sliver black-sliver force-pushed the improve-performance branch 2 times, most recently from fc58bf1 to a541449 Compare September 8, 2024 10:05
This is opt-in because it could change behaviour, so please test
and set Tracker.AllowDeferredLogicUpdate to true or false.
@black-sliver black-sliver merged commit 4ffcc80 into master Sep 10, 2024
8 checks passed
@black-sliver black-sliver deleted the improve-performance branch September 10, 2024 19:09
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