Replies: 1 comment 1 reply
-
As I remember, mostly historically. I'll take a look to it and make improvements. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Why do things like ValueRef need to lock the Lua VM and push a new reference for a clone. Would it not be more performant to instead wrap the inner contents of the ValueRef in a XRc like how the Lua VM itself is cloned?
E.g.
For context/further clarification, The Go bindings for Luau that im working on (gluau) rely on being able to clone ValueRef's for basically everything due to safety concerns and due to goroutines, these clones may occur over multiple threads leading to performance loss. Hence why I am considering to switch to XRc in my fork of mlua. I just wanted to know if there was a specific reason for the current design.
As an additional thing, the way valueref's are cloned might also be a contributing factor to why I was exhausting the auxiliary thread stack lol (#590)
Beta Was this translation helpful? Give feedback.
All reactions