rescript-compiler icon indicating copy to clipboard operation
rescript-compiler copied to clipboard

Very Slow Compilation of rescript files.

Open rahilvijay opened this issue 1 year ago • 4 comments

Hi, I am facing an issue which is faced also by many of my colleagues, the build for rescript files is taking way longes than expected. I am using rescript version - 9.1. System - Mac OS 12, M1 chip (the issue is also there for intel)

The video is attached below. The issue started fro today only, the memory and cpu usage are 7/8 GB and 27% with the build process running

https://github.com/rescript-lang/rescript-compiler/assets/110456714/a30461c5-0e4e-41bb-aae5-c000b6fb20b7

](url) Is Thank you for filing! Check list:

  • [x] Is it a bug? Usage questions should often be asked in the forum instead.
  • [x] Concise, focused, friendly issue title & description.
  • [ ] A minimal, reproducible example.
  • [x] OS and browser versions, if relevant.
  • [ ] Is it already fixed in master? Instructions

rahilvijay avatar Mar 26 '24 11:03 rahilvijay

Coincidentally I also just had slow compile times on an M2. Instead of 9 seconds for a full build it took 53 seconds! But it went away after a reboot.

fhammerschmidt avatar Mar 26 '24 12:03 fhammerschmidt

Also, even more interesting: I have double the compile time when I run the compiler in the VSCode terminal. From macOS Terminal it is 8-9s for the full build, in VSCode it's 16!

That's even with all extensions disabled.

fhammerschmidt avatar Mar 26 '24 12:03 fhammerschmidt

this is happening because of crowdstrike imentation. Any idea why the compile would be affected by it.

rahilvijay avatar Mar 28 '24 04:03 rahilvijay

I don't know exactly why, but this is very common for antivirus software. You are creating and changing a lot of files and my guess is that it scans each of them.

There is probably the possibility to put certain paths on a whitelist.

See also: https://developer.apple.com/forums/thread/115773?answerId=358647022#358647022

fhammerschmidt avatar Mar 28 '24 08:03 fhammerschmidt

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

github-actions[bot] avatar Mar 24 '25 02:03 github-actions[bot]