5 ms·
Hell, Ruby is that slow?!
by CoolCold 3y ago
Hell, Ruby is that slow?!
- prh8 3y agoIt's not specifically Ruby, but also using ActiveRecord, loading bloated models, associations, and some business logic. There is also a large amount of memory bloat with the sitemap library when working with large datasets. The Crystal sitemap library has a way to avoid that same bloat. With Crystal, all of those things are massively faster.
- pkd 3y agoSince a library is mentioned, it is possible that the Ruby library was particularly inefficient compared to Crystal. Crystal is definitely faster than Ruby, but I expect differences to diminish in IO-bound operations (which sitemap generation sounds like it would be).