-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
BREAKING: replace
im:Vector
with std::VecDeque
and remove im
Replace uses of `im::Vector` with `std::collections::VecDeque`, and remove `im` as a dependency. The reasons for this change are: * `std` collections are much more common, and are used in `conjure_oxide`. Currently I find myself using `.into_iter().collect()` after every Uniplate call to turn things back into `std` types. Using `std` types is much more common than `im`, so making this use-case easier should be a priority. If needed down the line, implementations of Uniplate using non-std data structures will be added as separate traits in a sub-module (e.g. `uniplate::im::Uniplate`) * `im` seems to not be actively maintained * It would be better for `uniplate` not to unnecessarily rely on types from external APIs which could change / become abandoned. * For the derive-macro, we currently re-export `im::Vector`. This makes compile errors for Uniplate messy, as they often reference the undocumented module `uniplate::_dependencies::im`. I don't think using persistent data-structures (why I originally used im) improved performance that much. The main performance bottlenecks seems to instead be clones and heap allocations with `Box`.
- Loading branch information
1 parent
ddd5f4e
commit 7b8f19f
Showing
9 changed files
with
77 additions
and
137 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
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
Oops, something went wrong.