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

feat!: add game version to resolveContract #519

Merged
merged 1 commit into from
Sep 15, 2024
Merged

Conversation

RDIL
Copy link
Member

@RDIL RDIL commented Sep 8, 2024

Scope

Sorry Fusha in advance.
Migrates the contract resolution system to be versioned by game.

Includes backwards compatibility shims for plugins.

Test Plan

I have not yet tested.

Checklist

  • I have run Prettier to reformat any changed files
  • I have verified my changes work

@RDIL RDIL added plugins Related to plugins. major This will need to be in a semver-major release. new feature Addition of a new feature, or request for a new feature. backlog This needs to be reviewed. labels Sep 8, 2024
@RDIL RDIL requested a review from fu5ha as a code owner September 8, 2024 16:34
Copy link
Contributor

@fu5ha fu5ha left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chatting lgtm Chatting

(The stuff I know about aka livesplit stuff looks good to me)

Comment on lines -71 to -74
/**
* Set the category to the name of the calling function
*/
CALLER = "caller",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Drive-by removal of this because it causes a deoptimization to occur for every call of log, meaning any function that calls log will be much slower as a result. For things like recursive or repeated calls, this causes exponential time loss.

fyi @LennardF1989 - future migration will be to add more manual category names. Eventually, we should probably make this required.

@RDIL RDIL merged commit cf953d8 into master Sep 15, 2024
5 checks passed
@RDIL RDIL deleted the rdil/versioned-contracts branch September 15, 2024 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
backlog This needs to be reviewed. major This will need to be in a semver-major release. new feature Addition of a new feature, or request for a new feature. plugins Related to plugins.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants