Skip to content
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

Switch to mini_mime gem from mime-types #105

Open
rocket-turtle opened this issue Dec 20, 2022 · 1 comment
Open

Switch to mini_mime gem from mime-types #105

rocket-turtle opened this issue Dec 20, 2022 · 1 comment

Comments

@rocket-turtle
Copy link

First of all thank you for continuing with paperclip. :)

Are there any planes to switch to mini_mime?

mini_mime is a more performant replacement for the mime-types gem. It uses the same database, but loads it in a more efficient manner, improving the number of allocations, memory, and speed.
The mail gem, which is a core component of Rails, has already switched to it.

mail
mikel/mail@634d911

Some more switches I could find:

capybara
teamcapybara/capybara#1884

rest-client
rest-client/rest-client#557

@zealot128
Copy link

zealot128 commented Mar 8, 2023

Using bumbler to measure the boot time, I was also very suprised that kt-paperclip too 4x as long as Rails:

91 of 115 gems required
Slow requires:
    127.06  rails
    147.24  country_select
    156.98  mime-types
    694.53  kt-paperclip

I guess mime-types is one of the reasons?

EDIT: nevermind, I've updated to version 7+ and mimemagic/mime-types was pulled to, now it is below the 100ms threshold.

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

No branches or pull requests

2 participants