-
-
Notifications
You must be signed in to change notification settings - Fork 112
refactor: kind of everything #421
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
base: main
Are you sure you want to change the base?
Conversation
- Optimize Loc::new() to eliminate string allocations during byte-to-char conversion - Replace HashMap with IndexMap for better cache performance in models - Use SmallVec for commonly small collections (ranges, statements, declarations) - Flatten cache structure with combined keys for better memory layout - Optimize merge operations to use HashSet for O(1) lookup instead of dedup_by - Add helper functions for efficient data structure conversions - Use more efficient parallel processing patterns Co-authored-by: MuntasirSZN <[email protected]>
- Update miri_tests.rs to use constructors instead of direct struct initialization - Replace Vec::new() with appropriate SmallVec constructors in tests - Fix capacity assertions to match SmallVec minimums - Ensure all tests compile and run correctly with new optimized data structures Co-authored-by: MuntasirSZN <[email protected]>
…omprehensive configuration Co-authored-by: MuntasirSZN <[email protected]>
Co-authored-by: MuntasirSZN <[email protected]>
…timizations Co-authored-by: MuntasirSZN <[email protected]>
chore: another clippy fix Update docs/cache-configuration.md Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Update src/bin/core/cache.rs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> Update src/cache.rs Co-authored-by: coderabbitai[bot] <136622811+coderabbitai[bot]@users.noreply.github.com> remove allow unused
Co-authored-by: MuntasirSZN <[email protected]>
…used code Co-authored-by: MuntasirSZN <[email protected]>
… checks Co-authored-by: MuntasirSZN <[email protected]>
Co-authored-by: MuntasirSZN <[email protected]>
Co-authored-by: MuntasirSZN <[email protected]>
…opying code Co-authored-by: MuntasirSZN <[email protected]>
Co-authored-by: MuntasirSZN <[email protected]>
Co-authored-by: MuntasirSZN <[email protected]>
Co-authored-by: MuntasirSZN <[email protected]>
no resolve button? @cordx56 see unoutdated ones only...
|
cordx56
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
reviewing
Okay, but this PR is sent from your repo. Maybe I can't edit your repo, right? |
You can. You are maintainer. Maintainer has edit access (regardless if repo of its own or not, just pr from that branch or repo). @cordx56 |
|
I removed do-build-check label, now all test, lint and build run in all targets. Also made build explicit so we don't have to know which target belongs to which os. |
Design - Resumable downloads - Download to disk (~/.rustowl/.rustowl-cache) - After full download done, extract sync Every component is downloaded and extarcted in parallel. We still stream to disk, but removed pipe as complex and we are not using it for anything else. We are using full download and extract after done. Reasoning: - In zip format, seeking while streaming is impossible (possible, with numerous caveats, and its not the way zip is made) - Tar is good, but two implementations, tar stream extract and zip full download and extract. So we unify to one way. FULL download and extract after done. Download is resumable, also download is streamed to disk, so memory usage is low.
f911159 to
d0e9cbe
Compare

No description provided.