Huge & Easy Reload Speed Improvement

Yesterday I spent some time looking into our reload times, and I found a trivial way of shaving 15+ seconds off reload speeds… Turns out that tons of garbage collection was happening during the reloads (in the supervisor process, not the meteor server process). So I just added NODE_OPTIONS="--max-old-space-size=4096" and everything magically got way faster.

The default value of this parameter on 64bit systems is 1GB which is not nearly enough for large Meteor projects. I definitely recommend tweaking this parameter to see if it helps.

I’ll look into submitting a PR on Meteor for this change, since it’s such an easy win.

TLDR: In dev mode, prefix the meteor command with NODE_OPTIONS="--max-old-space-size=4096".

Also, plug for Qualia: We are hiring and we recently raised a large Series B.


Tested this with 2048 and was surprised by the vast improvement. Thanks!

1 Like

Roughly how big an improvement do you think?

Probably about 5-8 seconds or so? Every second helps in development.

I guess it depends on the size of your project. Our server takes 9 seconds to restart and this didn’t improve it. Will keep it in mind if we start seeing a slowdown ever though, thanks.

And congrats on the funding!


In terms of perf improvements, I think you’re right. For many people 1gb memory might be enough.



Woooo!!! That’s great