cowboyd / handlebars.rb

Ruby Bindings for Handlebars.js
http://www.handlebarsjs.com
161 stars 67 forks source link

Is there a memory leak when calling Handlebars::Context.new ? #38

Open davich opened 9 years ago

davich commented 9 years ago

We had our app creating a new context for each request and memory usage went off the charts. But when we move it out to a global variable, memory stays pretty stable.

KevinColemanInc commented 6 years ago

I am running into this issue too. I think the problem is handlebars is not releasing the partials from memory. I see them getting stuck in the WeakRefMap in therubyracer gem.