-
Notifications
You must be signed in to change notification settings - Fork 2
60 format option to match buf or rvls #342
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?
60 format option to match buf or rvls #342
Conversation
move concat clean test fix: fix rebase linter: add allow dead code alllow dead code
Add documentation of struct `FormatTemplate`
files for testing
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
|||||||||||||
- I don't know how make `FormatTemplate::default().format` works with the `format!` so I copied it
|
@UmeSiyah I have trig the CI/Cd and the performance have drop a lot if you check this CI on your current branch run the benchmark in 3.3210 µs for the Parsing/Mono/1, instead of 1.3858 µs for a Ci running main branch. |
|
I can try! However, I haven't optimized Rust code before. Do you have any recommendations for a Rust profiler I could use? |
|
Flamegraph is maybe the most common one. |
|
Hello, I'm having trouble identifying the source of the slowdowns. Using Flamegraph, I identified and removed an unnecessary hashmap usage (which corresponds to my latest commits), which improved the performance from 6.7953 µs to 5.5447 µs (for the Parsing/Mono/1 on my machine). However, I'm now stuck and struggling to identify further optimizations. I've added a Here are the two Flamegraphs if you can take a look (I didn't find a tool for comparison). To generate them, I navigate to the |
|
I tested this morning, and it's |
User description
Hello,
I have renamed the branch to remove the "WIP" prefix, as my work is now ready for review. However, this action closed the existing pull request, so I am opening a new one.
Thank you.
PR Type
Enhancement, Documentation
Description
Added customizable output formatting via
FormatTemplate--formatto select output styleRefactored frame parsing logic with new
FramesstructFramesstruct holds sequence metadata and utility methodsUpdated tests and documentation for new formatting and parsing features
Added
strfmtas a dependency for flexible string formattingChanges walkthrough 📝
3 files
Add output formatting and refactor frame parsing with Frames structAdd CLI format option and integrate new formatting logicUpdate benchmarks to use new formatting interface1 files
Add strfmt dependency for output formatting4 files