Very Slow Compilation of rescript files.
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
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.
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.
this is happening because of crowdstrike imentation. Any idea why the compile would be affected by it.
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
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.