Skip to content

/mob/living/infect_disease() now compares the uniqueID and subID directly #5484

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

Conversation

LikeLakers2
Copy link
Collaborator

About The Pull Request

Previously, this line concatenated the unique ID and sub ID into a string, and compared that.

However, the use of a string here was completely unnecessary, and we could just compare the values directly, which is infinitely faster.

Why It's Good For The Game

performance number go up weeee

Changelog

N/A no player-facing changes

@LikeLakers2 LikeLakers2 added Code: Performance / Optimization the number going down makes me happy :3 Code: Improvement exactly what it says on the tin labels Feb 16, 2025
@LikeLakers2 LikeLakers2 changed the title /mob/living/infect_disease now compares the uniqueID and subID directly /mob/living/infect_disease() now compares the uniqueID and subID directly Feb 16, 2025
@Absolucy Absolucy merged commit dec8dcd into Monkestation:master Feb 19, 2025
28 checks passed
@LikeLakers2 LikeLakers2 deleted the project/small-opt/why-was-this-comparing-strings branch February 19, 2025 04:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Code: Improvement exactly what it says on the tin Code: Performance / Optimization the number going down makes me happy :3
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants