-
-
Notifications
You must be signed in to change notification settings - Fork 264
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
442: Remove HashMap from derive/generate r=dragostis a=nagisa There is a lot of value in outputs produced by compilers being reproducible. Rust makes it somewhat hard to get it right, but most of the time rustc’s outputs are also reproducible. This allows us to enjoy all the benefits as other more primitive toolchains. Most of the time. Pest was, sadly, one of those examples where reproducibility was not a concern and HashMap was used to implement some of the code generation portions. Replacing this `HashMap` with a `Vec` and a `O(nm)` loop is the easy solution. With the values that `n` and `m` get substituted with in practice, however, this loop should still be approximately as good as the previous `HashMap` implementation. Co-authored-by: Simonas Kazlauskas <[email protected]>
- Loading branch information
Showing
2 changed files
with
13 additions
and
9 deletions.
There are no files selected for viewing
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
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