keruilin
keruilin

Reputation: 17532

Rails: impact of lots of gems on performance?

What impact, if any, does having A LOT of gems have on the performance of your Rails app?

Upvotes: 1

Views: 203

Answers (2)

Ben Taitelbaum
Ben Taitelbaum

Reputation: 7403

I would say the biggest impact is when your rails app starts up, as the gems are all loaded into memory. If you have lots of gems loaded, chances are you'll also have a lot of code loaded that your app doesn't use, so one way to cut down on the memory usage is to take advantage of copy-on-write support in the linux kernel. One way to do this is to use ree and unicorn, as github did

This is just an assumption though. You should always profile your app when dealing with timing and memory questions. It can make a really useful blog post.

Upvotes: 1

shingara
shingara

Reputation: 46914

no impact on performance. It's just a problem of memory. You memory can be very big with so much gem and if you really use it.

Upvotes: 1

Related Questions