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 project settting for allowing StringName keys #69864

Closed
wants to merge 1 commit into from

Conversation

KoBeWi
Copy link
Member

@KoBeWi KoBeWi commented Dec 10, 2022

Fixes #68834

Pretty sure it's not an acceptable solution. Taking aside that this PR adds a project setting that affects core class via some global static variable, the gained performance doesn't make much difference in practice. The benchmarks in the issue are done with 1000000 operations; in my case I do at most ~20 StringName operations per frame, so the gain is non-existent xd

But I just had this idea, so I opened a PR 🤷‍♂️ It does solve the issue at least.

@KoBeWi KoBeWi added this to the 4.x milestone Dec 10, 2022
@KoBeWi KoBeWi requested review from a team as code owners December 10, 2022 17:30
@KoBeWi
Copy link
Member Author

KoBeWi commented Dec 18, 2022

💀

@KoBeWi KoBeWi closed this Dec 18, 2022
@KoBeWi KoBeWi removed this from the 4.x milestone Dec 18, 2022
@KoBeWi KoBeWi deleted the 😬 branch December 18, 2022 16:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Lua-style Dictionary operations are slower
1 participant