-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
simplify traits and dyn-safety #23
Conversation
Fixed #21 `DynProgress` is sealed and implemented for any type that implements `Progress`. Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
They are roughly half as fast due to the dynamic call overhead.
…em to be dyn-safe. `Progress` is now `NestedProgress`, `RawProgress` is now `Progress`, and there is a new `Count` trait for solely counting things.
Conflicts: src/lib.rs src/traits.rs
@NobodyXu After doing some refactoring I am in a place where I am happy to make a release. This release includes #22 which now provides a way to opt-in to dynamic hierarchical progress, which previously wasn't an option. In this version, for some reason, the performance is greatly improved and we are looking at only ~30% less performance for typical counting, and even that won't be an issue if Thus, in theory, it should be possible to replace With that in mind I will start reviewing the codebase soon and use |
This should simplify downstream code and we just accept that we are dealing with a threaded world. This also comes with performance improvements as increments are now 250% faster.
Progress
is nowNestedProgress
,RawProgress
is nowProgress
, and there isa new
Count
trait for solely counting things.