-
Notifications
You must be signed in to change notification settings - Fork 109
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Completion of issue 711 and general code improvements (#1314)
* Changing sets and maps to use the same hasher * Fixed typo * Change to FxHash * Refactor code and change to sort_unstable Changed code from for loops to map + collect to reduce number of vector reallocations. Changed Vec::sort() to Vec::sort_unstable(), because it is faster and stability is not needed. Most of the sorted vectors are created from a hashmap, so there are no duplicate entries whose order could be changed by the sorting. * Preallocate vector capacity * Preallocate vector capacity * Remove unnecessary work The old code created the viper encodings for all the methods, even if they get deleted again afterwards if config::verify_only_preamble() is true. Now it will only do the work if the option is not set to true * Fixed formating * Inline variables in format string * Switch to unstable sort * Switch to FxHash * Switch to rustc-hash * Fix formatting * Remove unused file * Reduce error message duplication * Switch to rustc-hash * Improve error reporting * Add clippy lint for disallowed types * Fix incorrect format string Co-authored-by: Aurel <[email protected]> * Disable rustup self update --------- Co-authored-by: Aurel <[email protected]>
- Loading branch information
Showing
93 changed files
with
344 additions
and
550 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# use rustc-hash instead: https://crates.io/crates/rustc-hash | ||
disallowed-types = ["std::collections::HashMap", "std::collections::HashSet", "fxhash::FxHashMap", "fxhash::FxHashSet"] |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
# use rustc-hash instead: https://crates.io/crates/rustc-hash | ||
disallowed-types = ["std::collections::HashMap", "std::collections::HashSet", "fxhash::FxHashMap", "fxhash::FxHashSet"] |
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
Oops, something went wrong.