-
Notifications
You must be signed in to change notification settings - Fork 9
Optimize RootAsRole sr program #70
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
Conversation
This huge commit is rewriting the optimisation, securing everything and simplifying.
This should further enhance the performance.
…ck the best graph.
…odules for performance
…n for performance
…dule - Refactored the serialization logic for SConfig, SRole, SSetuidSet, SSetgidSet, SCredentials, STask, and SCommands to fix inconsistencies. - Added tests for serialization of SConfig, SRole, SSetuidSet, SSetgidSet, SCredentials, STask, and SCommands to ensure correctness. - Enhanced handling of human-readable and binary serialization formats.
- Added conversion rules to the CLI parser in `pair.rs` to handle conversion actions. - Introduced a new module `convert.rs` to encapsulate the conversion logic, including writing configuration files in different formats (JSON, CBOR). - Refactored `process_input` in `process.rs` to handle conversion inputs and streamline the handling of storage configurations. - Updated the main function in `main.rs` to work with the new settings structure and removed unnecessary storage method checks. - Cleaned up unused error handling in `finder/mod.rs` related to unsupported storage methods.
- Updated the `SPathOptions` to `DPathOptions` in various deserializer implementations for better clarity and functionality. - Introduced a new method `default_path` in `DPathOptions` to encapsulate default path initialization logic. - Enhanced the `union` method in `DPathOptions` to manage path options merging more effectively. - Simplified the `user_matches` method in `ActorsFinderDeserializer` by removing unnecessary `if let` constructs. - Added unit tests for timezone safety checks and path handling.
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## dev #70 +/- ##
======================================
Coverage ? 74.05%
======================================
Files ? 33
Lines ? 4108
Branches ? 0
======================================
Hits ? 3042
Misses ? 1066
Partials ? 0
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
There are many things to optimize. I think we are quite acceptable now |
This should optimize RootAsRole project