How I spent two weeks hunting a memory leak in Ruby (2015)
1–10 of 71 posts
Re: How I spent two weeks hunting a memory leak in Ruby (2015)
#2Re: How I spent two weeks hunting a memory leak in Ruby (2015)
#3A little worrisome that the fix hasn't been merged. (edit: it's been fixed)
"Update on 2015/09/29. Redcarpet fix has been released."
Re: How I spent two weeks hunting a memory leak in Ruby (2015)
#4Great insight, though. Author described this experience as it was a great venture... in hindsight I suppose :-)
Re: How I spent two weeks hunting a memory leak in Ruby (2015)
#5Re: How I spent two weeks hunting a memory leak in Ruby (2015)
#6Re: How I spent two weeks hunting a memory leak in Ruby (2015)
#7There is no reason for using native extensions in scripting languages like Ruby when program load is pretty low (especially when they are used for performance reason, not binding). Great insight, though. Author described this experience as it was a great venture... in hindsight I suppose :-)
The leak was in a gem.
Re: How I spent two weeks hunting a memory leak in Ruby (2015)
#8 - return Data_Wrap_Struct(klass, rb_redcarpet_rbase_mark, NULL, rndr);
+ return Data_Wrap_Struct(klass, rb_redcarpet_rbase_mark, xfree, rndr);Re: How I spent two weeks hunting a memory leak in Ruby (2015)
#9There is no reason for using native extensions in scripting languages like Ruby when program load is pretty low (especially when they are used for performance reason, not binding). Great insight, though. Author described this experience as it was a great venture... in hindsight I suppose :-)
Stick with pure-language extensions (they're so much easier to work with!) until you can measure and quantify the cost and benefit of switching.
Re: How I spent two weeks hunting a memory leak in Ruby (2015)
#10There is no reason for using native extensions in scripting languages like Ruby when program load is pretty low (especially when they are used for performance reason, not binding). Great insight, though. Author described this experience as it was a great venture... in hindsight I suppose :-)
> when program load is pretty low The leak was in a gem.