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

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

Very Slow Compilation of rescript files. #6695

rahilvijay opened this issue Mar 26, 2024 · 5 comments
Labels
stale Old issues that went stale

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
Member

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
Member

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
Member

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

Copy link

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 github-actions bot added the stale Old issues that went stale label Mar 24, 2025
@github-actions github-actions bot closed this as not planned Won't fix, can't repro, duplicate, stale Mar 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stale Old issues that went stale
Projects
None yet
Development

No branches or pull requests

2 participants