Carl Mercier


570 Experience
5 Lessons Completed
0 Questions Solved


Posted in Tuning Ruby for development

I guess code blocks get confused with the hash symbol :) 

Posted in Tuning Ruby for development

What are you guys using these days to tune your Ruby MRI 2.5 at dev time? I've been using a mix of environment variables for a while and I'm not even sure if they're still valid, or deprecated.

Basically, I'm ok sacrificing ram for speed.

Here's what I have:

# Compile Ruby with jemalloc.

export RUBY_CONFIGURE_OPTS="--with-jemalloc --with-openssl-dir=/usr/local/opt/openssl"
export CONFIGURE_OPTS="--with-jemalloc --with-openssl-dir=/usr/local/opt/openssl"

Tune GC.

export RUBY_GC_HEAP_INIT_SLOTS=1000000 # 1M
export RUBY_GC_HEAP_FREE_SLOTS=500000 # 0.5M
export RUBY_GC_HEAP_GROWTH_MAX_SLOTS=10000000 # 10M
export RUBY_GC_MALLOC_LIMIT_MAX=1000000000 # 1G

Posted in Lots of trouble using LESS in a paid theme.

What's the best way to convert LESS to SASS these days Alan? I was never able to find a good automated way in the past. Thanks
logo Created with Sketch.

Ruby on Rails tutorials, guides, and screencasts for web developers learning Ruby, Rails, Javascript, Turbolinks, Stimulus.js, Vue.js, and more. Icons by Icons8

© 2021 GoRails, LLC. All rights reserved.