Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Very Slow Compilation of rescript files. #6695

Open
3 of 5 tasks
rahilvijay opened this issue Mar 26, 2024 · 4 comments
Open
3 of 5 tasks

Very Slow Compilation of rescript files. #6695

rahilvijay opened this issue Mar 26, 2024 · 4 comments

Comments

@rahilvijay
Copy link

rahilvijay commented Mar 26, 2024

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

Screen.Recording.2024-03-26.at.12.45.11.PM.mov

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

  • Is it a bug? Usage questions should often be asked in the forum instead.
  • Concise, focused, friendly issue title & description.
  • A minimal, reproducible example.
  • OS and browser versions, if relevant.
  • Is it already fixed in master? Instructions
@rahilvijay rahilvijay changed the title Very SLow Compilation of rescript files. Very Slow Compilation of rescript files. Mar 26, 2024
@fhammerschmidt
Copy link
Contributor

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
Copy link
Contributor

fhammerschmidt commented Mar 26, 2024

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.

@rahilvijay
Copy link
Author

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

@fhammerschmidt
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants