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

[experiment] Add the ability to disable NativeCompileCache #1174

Open
1 task done
savetheclocktower opened this issue Dec 19, 2024 · 0 comments
Open
1 task done

[experiment] Add the ability to disable NativeCompileCache #1174

savetheclocktower opened this issue Dec 19, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@savetheclocktower
Copy link
Contributor

Have you checked for existing feature requests?

  • Completed

Summary

NativeCompileCache is a piece of the app that we don't understand that well. It was introduced back in 2015 to work around a Node performance issue that, for all we know, could've been fixed ages ago. It's 2024 and it's worth seeing if we still need this thing.

We should make it possible to bypass NativeCompileCache for a given app session — probably via a command-line switch.

What benefits does this feature provide?

Pulsar is sometimes very slow to start up when restoring an existing project, and we don't know why. One theory I have is that it's due to our reliance on cached modules that, for whatever reason, are no longer valid. Adding a quick way for a user to bypass NativeCompileCache would give us a quick way to validate this assumption.

Even if it wasn't a fix for this issue, it would allow us to test whether its continued inclusion is warranted — after all, if it doesn't improve performance anymore over the standard approach, then we can simplify the app and jettison outdated code.

Any alternatives?

Not that I can think of. Any alternatives would be more disruptive — i.e., removing the feature altogether — and a bit foolhardy.

Other examples:

No response

@savetheclocktower savetheclocktower added the enhancement New feature or request label Dec 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant