Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix accidental O(n^2 * log n) performance in NixRepl::addAttrsToScope
Only sort once, after adding all of the attrs first. This reduces my `nix repl '<nixpkgs>'` loading time from 1.07s to 103ms. Fixes #5823
- Loading branch information