-
Notifications
You must be signed in to change notification settings - Fork 4
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
Investigate size of express_parser.so for Ruby 3.0, 3.1 #122
Comments
@maxirmx can you help check? Thanks! |
I will look at it |
Is there a potential to reduce the size of express_parser.so for Ruby 3.0, 3.1? There is some difference between I can look at it further but I was not able to develop any plan yet. |
BTW how do you think about the second question? I just checked several gems and neither of them implements such behavior. Maybe there are some obvious reasons why it's not possible? |
If this is not possible maybe we can conditionally remove unnecessary binaries. For example if we install expressir gem for Ruby 3.1, can we remove 2.7 and 3.0 variants?
We can probably develop bundler plugin that will remove all extra binaries not only for expressir but for other gems as well |
I have to say that there is something wrong with expressir linkage. It is not only this size issue but also Alpine issues (#106) |
Thanks @maxirmx for the continued investigation! |
It looks like we can have only two versions of the library packed - 2.x and 3.x Ruby 2.7 cannot load 3.x library and 3.0 and 3.1 appear to be the same. |
I found the difference in compilation 2.x vs 3.x |
Thank you @maxirmx ! |
Intro
During the investigation of docker image size in the scope of metanorma/metanorma-docker#147 I have found that size of
express_parser.so
for Ruby 3.0, 3.1 (21 MB) is 3 times more thanexpress_parser.so
for Ruby 2.7 (7.2 MB)Questions
express_parser.so
for Ruby 3.0, 3.1?expressir
gem for Ruby 3.1, can we remove 2.7 and 3.0 variants?The text was updated successfully, but these errors were encountered: