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

Optimizes /proc/icon_exists #5287

Closed
wants to merge 2 commits into from

Conversation

Absolucy
Copy link
Member

@Absolucy Absolucy commented Feb 4, 2025

About The Pull Request

/proc/icon_exists is actually quite a hot proc, to the point where it shows up when sorting profiles by overtime, and, and kapu posted this quite simple optimization regarding caching on coderbus

Credit to @Kapu1178

Why It's Good For The Game

faster code is good meow

Changelog

no player-facing changes

@Absolucy Absolucy added the Performance / Optimization the number going down makes me happy :3 label Feb 4, 2025
@LikeLakers2
Copy link
Collaborator

You'll probably want to modularize this, or mark it with //MONKESTATION EDIT, as tgstation never merged the PR that implemented this on their end - tgstation/tgstation#71538

@Absolucy
Copy link
Member Author

Absolucy commented Feb 4, 2025

@LikeLakers2 said PR was closed due to being stale, and I plan to try to upstream this again

I'll draft this for now while I try to re-upstream it.

@Absolucy Absolucy marked this pull request as draft February 4, 2025 20:08
@LikeLakers2
Copy link
Collaborator

@Absolucy Since my PR (which just got merged) diverged from yours quite a bit, I don't know whether you want to try pulling in the changes, or if you want me to make my own port PR.

@LikeLakers2
Copy link
Collaborator

LikeLakers2 commented Feb 5, 2025

MichiRecRoom — Today at 6:19 PM
Lucy (as Shion Rosenthal) the icon_exists pr got merged in tg
do you want to port the changes to monke, or do you want me to get on that?

Lucy (as Shion Rosenthal) — Today at 6:19 PM
eh you can

@LikeLakers2 LikeLakers2 closed this Feb 5, 2025
@Absolucy Absolucy deleted the optimize-icon-exists branch February 5, 2025 23:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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