-
Notifications
You must be signed in to change notification settings - Fork 2
Various improvements regarding JSON (de) serialization #22
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
|
Sorry, the last commit does not compile. Will push a fix ASAP. |
637c753 to
e92ede3
Compare
|
Fixed. Should work now. I had to move |
|
Hi @lschmierer, thank you for this PR! Really appreciate it. I'm going to cherry pick these changes. Here is a quick summary: do not download r6 files if already present - I'm going to skip this one. I have evolved this area over time and there are a couple conflicting requirements that require some tradeoffs. I think the requirements surrounding this are:
I introduced the I did find one issue when looking at this code - I was never removing the R6 test files before extracting the newly downloaded test files - this has been fixed. Open to other thoughts. Curious - I'm unsure what you ran that resulted in a need to add the skip download if files exist code? Was it fix wrong identifiedDateTime field name - Yes! Thank you. add AGENTS.md to .gitignore - Yes! Thank you. make code generation deterministic - Yes! Thank you - this should be helpful going forward. do not serialize into temporary serd_json values to detect emptiness - Yes! Thank you! I'm working on a performance test which I will post here in a separate comment when done. Interestingly, I did find when building with the --release flag that I ran into new cycle detection optimization issues with this new code that was not there before, and needed to apply this change. These items were cherry-picked into this branch and merged. I plan to close this PR when we are done discussing it here. Thanks again Lukas! |
|
Here is the performance improvement test: Performance Differences (Refactor vs Main):R4: 3.00% faster (IMPROVEMENT) R6 couldn't be compared easily because main had an old R6 test files. |
I honestly do not quire remember, I think it was domething like The serde_helpers.rs file in my last commit was actually not referenced anymore, I removed it in #24 |
Hi @smunini, the PR contains the changes from #21 that are applicable to the
mainbranch.All commits should be self-contained. You can cherry-pick them individually or just merge all at once.