Skip to content

Potential fix for #4209 #4218

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

Merged
merged 1 commit into from
May 10, 2025
Merged

Conversation

tederis
Copy link
Member

@tederis tederis commented May 10, 2025

Fixes the issue with string hash calculation that #4169 was brought. Lua relies on strings without a null terminator which had not been taken into account. This potentially can lead to non-uniform hashmap access which in turn leads to poor performance. Thanks to @samr46 for pointing it out.

@tederis tederis added the bugfix Solution to a bug of any kind label May 10, 2025
@botder botder merged commit 9084552 into multitheftauto:master May 10, 2025
6 checks passed
@botder botder added this to the 1.6.1 milestone May 10, 2025
MTABot pushed a commit that referenced this pull request May 10, 2025
9084552 Fix for performance regression (PR #4218, Fixes #4209)
huncrys added a commit to huncrys/mtasa-blue that referenced this pull request May 31, 2025
huncrys added a commit to huncrys/mtasa-blue that referenced this pull request Jun 23, 2025
huncrys added a commit to huncrys/mtasa-blue that referenced this pull request Jul 8, 2025
huncrys added a commit to huncrys/mtasa-blue that referenced this pull request Jul 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bugfix Solution to a bug of any kind
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants