forked from jetify-com/devbox
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[perf] in syncPackagesToProfile, only removeExtraItemsFromProfile is …
…mode is not install (jetify-com#1541) ## Summary Doing `devbox global add <package>` was taking 9 seconds for me. Most of this time was spent in `removeExtraPackagesFromProfile`. This operation takes longer because it calls `devpkg.NormalizedPackageAttributePath` which calls `nix.Search` which is slow. Instead, I advocate for us to not do this step when adding packages. ## How was it tested? `devbox global add <package>` is now snappy
- Loading branch information
Showing
3 changed files
with
8 additions
and
5 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters