Skip to content

refactor: kind of everything#421

Closed
MuntasirSZN wants to merge 170 commits intocordx56:mainfrom
MuntasirSZN:feat/test-frenzy
Closed

refactor: kind of everything#421
MuntasirSZN wants to merge 170 commits intocordx56:mainfrom
MuntasirSZN:feat/test-frenzy

Conversation

@MuntasirSZN
Copy link
Collaborator

No description provided.

Copilot AI and others added 30 commits September 2, 2025 20:41
- 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 <161931072+MuntasirSZN@users.noreply.github.com>
- 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 <161931072+MuntasirSZN@users.noreply.github.com>
…omprehensive configuration

Co-authored-by: MuntasirSZN <161931072+MuntasirSZN@users.noreply.github.com>
Co-authored-by: MuntasirSZN <161931072+MuntasirSZN@users.noreply.github.com>
…timizations

Co-authored-by: MuntasirSZN <161931072+MuntasirSZN@users.noreply.github.com>
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 <161931072+MuntasirSZN@users.noreply.github.com>
…used code

Co-authored-by: MuntasirSZN <161931072+MuntasirSZN@users.noreply.github.com>
… checks

Co-authored-by: MuntasirSZN <161931072+MuntasirSZN@users.noreply.github.com>
Co-authored-by: MuntasirSZN <161931072+MuntasirSZN@users.noreply.github.com>
Co-authored-by: MuntasirSZN <161931072+MuntasirSZN@users.noreply.github.com>
…opying code

Co-authored-by: MuntasirSZN <161931072+MuntasirSZN@users.noreply.github.com>
Co-authored-by: MuntasirSZN <161931072+MuntasirSZN@users.noreply.github.com>
Co-authored-by: MuntasirSZN <161931072+MuntasirSZN@users.noreply.github.com>
Co-authored-by: MuntasirSZN <161931072+MuntasirSZN@users.noreply.github.com>
@cordx56
Copy link
Owner

cordx56 commented Jan 13, 2026

@MuntasirSZN

I hate to say this, but this PR has grown far too large. It’s difficult to review because it’s unclear when it will be completed, and the changes go well beyond the scope of refactoring. There are also many breaking changes.

Another concern is that the changes haven’t been sufficiently discussed. Rather than incorporating many great changes all at once, I’d prefer to release updates regularly. To do that, each change should be thoroughly discussed and we need time to debug them properly.

Of course, you’re welcome to implement and test various features in your own repository, but PRs should be submitted with appropriate granularity. This isn’t about the amount of code. They should be scoped by topic to facilitate discussion.

Please understand that not all great changes will necessarily be supported by everyone.

@MuntasirSZN
Copy link
Collaborator Author

@MuntasirSZN

I hate to say this, but this PR has grown far too large. It’s difficult to review because it’s unclear when it will be completed, and the changes go well beyond the scope of refactoring. There are also many breaking changes.

Another concern is that the changes haven’t been sufficiently discussed. Rather than incorporating many great changes all at once, I’d prefer to release updates regularly. To do that, each change should be thoroughly discussed and we need time to debug them properly.

Of course, you’re welcome to implement and test various features in your own repository, but PRs should be submitted with appropriate granularity. This isn’t about the amount of code. They should be scoped by topic to facilitate discussion.

Please understand that not all great changes will necessarily be supported by everyone.

So what should i do now? I sent granular prs (stacked) and you wanted in a big pr. Now you want a granular one again?

I can cherry-pick commits from start commit and you can merge one by one. That way is available. @cordx56

@MuntasirSZN
Copy link
Collaborator Author

Also we are going to v1 which is a breaking change anyway.

@MuntasirSZN
Copy link
Collaborator Author

@cordx56 now you can review. I will do no more changes. xtask refactor is a bit "small", doesnt have fancy outputs, but functions.

@MuntasirSZN
Copy link
Collaborator Author

I will accomodate each edit ONE BY ONE. In the meantime, I will close this. This doesnt block v1 though.

@MuntasirSZN
Copy link
Collaborator Author

Do NOT delete the branch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dont-close Don't close this issue or pull request.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants