-
Notifications
You must be signed in to change notification settings - Fork 2k
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
Use the faster table insertion method (dlg_settings_advanced.lua only) #3823
Conversation
Not really critical or anything hotpath, but still fine I think. |
Yes. But even not critical, I think the faster the better. |
On non-critical code you need readability and ease of maintenance more than a micro-optimization. There are other ways to make the insertion faster, but it would be dumb to lose the readability for 3 ms. faster here... |
👍 |
lua-5.1.2, tested with the pasted link by kaeza:
|
For reference, here is a full spread of test data across versions: Numbers are insertions per second
My biased opinion:
|
I will close this PR and revert 24e8b0a with new PR. |
No description provided.