Open waiting-for-dev opened 8 years ago
I also have to say that that results were obtained using ruby 2.1. Now we have updated the project to ruby 2.3.1 and the results are much, much better. The average consumption is around 4 MiB. So this issue should only be taken into account if axlxs wants to be optimized for ruby older versions.
Well, in another project using ruby 2.3.1 axlsx amounts 11.5 MiB on boot...
I had this issue and switched to the xlsxtream gem. It worked really nice for basic csv-like data in xlsx-format!
Fewer features than axlsx, but less memory usage and a simpler code-base.
Hi,
axlsx uses a big amount of memory on boot. Doing some tests, usually it is second only after rails, but even sometimes axlsx is the first.
Tests have been made in a rails application with derailed_benchmarks.
Here it is a relevant section example running
bundle exec derailed bundle:mem
:And here it is a link with the result of
bundle exec derailed bundle:objects
with aGemfile
than only has axlsx on it.To be honest, I'm not sure I'm going to find the time to inspect it further, but at least I wanted to share what I've done so far.
Thanks.