-
Notifications
You must be signed in to change notification settings - Fork 115
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
possible to remove unused parts of Lua from the compiled binary? #122
Comments
Hmmm, in order to remove them from the binary, it would involve patching the Lua source. You can now choose which std libraries to load on startup and just not load io, math, etc. Is it extremely important that they not be included in the binary? Won't the linker potentially strip it out if it's completely unused? |
that's what I expected, and/or making cfg features in rlua. how does that seem to you? having a "slim-lua" would make sense to me.
no, it isn't. in the debug library's case, for example, we just don't expose it, and that accomplishes my main interest inline with your safety precautions. I'm guessing that'll also work for that issue, but I still need feedback to firm up that plan.
I haven't looked into that before, so idk. if it does, would that improve performance? (that's my targeted side benefit and the main reason for this issue.) |
oh, yea. 68b90e7 looks really good. |
Not really, except some minor startup performance. If you've seen a huge regression, I suspect that something else is going on, and if it's a HUGE regression then that's good because it's hopefully dumb and easy to fix. |
how can we go about finding it? would jazzdotdev/jazz#125 help? or these profiling and debugging Rust tools? |
You don't need rust specific tools to find performance problems, generic tools will often do the job just fine. I would start with |
Closing as I don't think we would want to patch Lua to remove parts of it in rlua. @naturallymitchell If you still have a performance issue please feel free to open an issue with some details to allow us to reproduce it or narrow down where or when it is. (Apologies if you have already done this and I haven't got to that issue yet!) |
@kyren, thx for driving forward jazzdotdev/jazz#259. hopefully someone will find that regression soon if there is one.
perhaps we could find it from this angle too, more easily even, since we only need ~20% of Lua's codebase and "The Best Code is No Code At All", (also discussed in jazzdotdev/jazz#262)
The text was updated successfully, but these errors were encountered: