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

Add final where possible - server #1798

Merged

Conversation

Pirulax
Copy link
Contributor

@Pirulax Pirulax commented Nov 4, 2020

The previous PR, but separated:

Adding the final keyword allows the compiler to "devirtualize" (virtual) calls, aka inline them.
This will probably blow some hacky code up pretty hard, im sure.

@Pirulax Pirulax force-pushed the refactor/add-finalizers/server branch from b814108 to c5ead28 Compare November 4, 2020 10:13
@qaisjp
Copy link
Contributor

qaisjp commented Nov 5, 2020

This will probably blow some hacky code up pretty hard, im sure.

If so, I think whoever merges this should be careful to make sure it isn't caught in a huge build, otherwise it'll be hard to bisect nightlies and determine if this caused an issue.

@Pirulax
Copy link
Contributor Author

Pirulax commented Nov 5, 2020

Im saying this based on my experience with MTA code, theres quite some questionable stuff going on.
I'll download the build, and test it later.

Also.. We could group up the changes here by class type into separate PRs, so if anything goes wrong we're going to have a separate nightly for each PR.

Edit: Al-tough, I dont think It will cause any issues here(on the server), but rather on the client.

@Pirulax Pirulax merged commit dfcc694 into multitheftauto:master Dec 9, 2020
@StrixG StrixG added this to the 1.6 milestone Dec 9, 2020
@botder botder modified the milestones: 1.6, Spring Maintenance Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants