Skip to content

Performance Improvements#212

Merged
kunitoki merged 10 commits intomasterfrom
dev/performance
Mar 29, 2026
Merged

Performance Improvements#212
kunitoki merged 10 commits intomasterfrom
dev/performance

Conversation

@kunitoki
Copy link
Copy Markdown
Owner

@kunitoki kunitoki commented Mar 29, 2026

This PR aims at giving Luabridge3 a performance boost to make it play the same league as sol2 v3.0, while retaining all the intrisic safeties:

image

As you see here, only chained table access is relatively slower in luabridge, everything else is really close. For things like lua calls to c++ member, which is a typical usage scenario when bindings are accessed from scripts (more than chained table access for a bindings library) luabridge3 outperforms sol2.

@kunitoki kunitoki linked an issue Mar 29, 2026 that may be closed by this pull request
@kunitoki kunitoki merged commit 23c1dca into master Mar 29, 2026
33 of 35 checks passed
@kunitoki kunitoki deleted the dev/performance branch March 29, 2026 20:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Userdata::get triggers the lua panic handler when called from C++

1 participant