ai / autoprefixer-rails

Autoprefixer for Ruby and Ruby on Rails
https://twitter.com/autoprefixer
MIT License
1.22k stars 108 forks source link

Causes extremely slow CSS compilation on Apple Silicon #207

Closed ykessler closed 3 years ago

ykessler commented 3 years ago

Just recently transferred a Rails project to a new 2020 M1 Macbook Pro, and spent a couple of days trying to figure out why CSS compilation was taking much longer on the new machine (over 30 sec, compared to 5 sec on my old box).

Turns out as soon as I commented out the autoprefixer-rails gem (10.2.5.1) compilation times dropped to nearly instantaneous. No idea why.

Sorry for the lack of detail, this thing just threw me for a loop and I just wanted to let you know. I can answer questions if you have any.

albb0920 commented 3 years ago

Hi

Thanks

ykessler commented 3 years ago

I was inadvertently running an older version of Node (v12.14.0). Installing latest Node version (v16.2.0) cleared up the issue entirely (as did using MiniRacer as an alternative runtime.). Sorry my dumb mistake.

albb0920 commented 3 years ago

It is definitely helpful to know node 12 may cause degraded performance, thank you for reporting this.