How to get the vote out for Democrats!
I'm busy, mildly overwhelmed and confused, and want to help, I think? What should I do right now?!
Skip this whole document and...
This guide is for Rails 5.1 or lower. Starting in 5.2, all these issues have been made irrelevant.
|sleep = (ms)->|
|date = new Date()|
|break if (new Date())-date > ms|
|# as foretold in a million passionate comments by programmers 'round the world,|
|# handy when trying to experiment with something in dev (like if you want to simulate|
|# a timeout)|
sudo port selfupdate sudo port install ruby25 # will include readline sudo port select ruby ruby25 ### >>> OPEN A NEW TERMINAL!!! <<< ### otherwise, the configuration won't point to the correct version of readline, no matter what you do. ### not sure if this is "through" the ruby binary, or something else in the environment ### i just saved you 17 hours of your life, you're welcome
There are many options available for tuning ruby memory management: https://github.com/ruby/ruby/blob/trunk/gc.c#L7420-L7444
The one that gets the most attention is RUBY_GC_HEAP_GROWTH_FACTOR, which is the only one Heroku suggests adjusting: https://devcenter.heroku.com/articles/ruby-memory-use#gc-tuning
I've often wondered what the drawback was for setting RUBY_GC_HEAP_GROWTH_FACTOR quite low for a webapp.