Some optimizations and fixes for BLUA from LUA #223

Merged
alufolie91 merged 16 commits from bluaopti2 into Saturn-Next 2026-04-05 18:28:50 +02:00
alufolie91 commented 2026-03-13 19:01:47 +01:00 (Migrated from github.com)

As in the title.
This ports over a few smaller optimizations and some fixes from lua into blua.
Seems to improve performance a bit, but needs further testing and profiling

i also switched the string hash to use luajit´s sparse ARX hash, massively improving string performance
tho this needs further testing since it may change iteration order (tho it is explicitly not defined in lua, we had issues with bluajit due to table iteration order hence)

As in the title. This ports over a few smaller optimizations and some fixes from lua into blua. Seems to improve performance a bit, but needs further testing and profiling i also switched the string hash to use luajit´s sparse ARX hash, massively improving string performance tho this needs further testing since it may change iteration order (tho it is explicitly not defined in lua, we had issues with bluajit due to table iteration order hence)
alufolie91 commented 2026-03-15 18:21:32 +01:00 (Migrated from github.com)

decided to revisit the fast track stuff for tables since it was quite messy before and had const correctness issues (srb2 removed a big amount of const qualifiers when lua was added for some reason)
everything seems fine now, and even with the constness issues stuff worked fine

decided to revisit the fast track stuff for tables since it was quite messy before and had const correctness issues (srb2 removed a big amount of const qualifiers when lua was added for some reason) everything seems fine now, and even with the constness issues stuff worked fine
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: saturn/SRB2Kart-Saturn#223