Skip to content

revert: move to ahash#9464

Merged
sophiajt merged 3 commits intonushell:mainfrom
sophiajt:revert_ahash
Jun 18, 2023
Merged

revert: move to ahash#9464
sophiajt merged 3 commits intonushell:mainfrom
sophiajt:revert_ahash

Conversation

@sophiajt
Copy link
Copy Markdown
Contributor

This PR reverts #9391

We try not to revert PRs like this, though after discussion with the Nushell team, we decided to revert this one.

The main reason is that Nushell, as a codebase, isn't ready for these kinds of optimisations. It's in the part of the development cycle where our main focus should be on improving the algorithms inside of Nushell itself. Once we have matured our algorithms, then we can look for opportunities to switch out technologies we're using for alternate forms.

Much of Nushell still has lots of opportunities for tuning the codebase, paying down technical debt, and making the codebase generally cleaner and more robust. This should be the focus. Performance improvements should flow out of that work.

Said another, optimisation that isn't part of tuning the codebase is premature at this stage. We need to focus on doing the hard work of making the engine, parser, etc better.

User-Facing Changes

Reverts the HashMap -> ahash change.

cc @FilipAndersson245

@FilipAndersson245
Copy link
Copy Markdown
Contributor

@jntrnr seems resonable, I just like trying our small changes to improve performance,
My other PR #9415 is in a similar level of optimization, What should we do with that one?
currently we build it on nightly for windows, linux & macos (crosscompile for riscv, arm seemed to not work). @fdncred saw a almost 70% improvement to his startup time on windows, with an average of 20%.

@sophiajt
Copy link
Copy Markdown
Contributor Author

@FilipAndersson245 - let's leave the allocator change in for now, as it's off by default. From here, we can focus on the algorithm improvements. It makes it easy to switch it on later after we've done that work.

@sophiajt sophiajt merged commit 6c730de into nushell:main Jun 18, 2023
@sophiajt sophiajt deleted the revert_ahash branch June 18, 2023 03:28
@fdncred
Copy link
Copy Markdown
Contributor

fdncred commented Jun 18, 2023

I'm only running the mimalloc version since the PR landed in order to test it more thoroughly on multiple platforms

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

Successfully merging this pull request may close these issues.

3 participants