refactor: less objects during writing#15677
Merged
Merged
Conversation
Contributor
Review Summary by QodoReduce object allocation in bibtex entry writing
WalkthroughsDescription• Eliminate unnecessary TypedBibEntry object creation during entry writing • Directly access entry type display name from BibEntry object • Reduce memory allocation overhead in bibtex writing process Diagramflowchart LR
A["BibEntry"] -->|"getType().getDisplayName()"| B["Type Display Name"]
C["Removed: TypedBibEntry"] -.->|"no longer needed"| D["Memory Savings"]
B --> E["BibWriter Output"]
File Changes1. jablib/src/main/java/org/jabref/logic/bibtex/BibEntryWriter.java
|
Contributor
Code Review by Qodo
1. Unused mode parameter
|
Siedlerchr
approved these changes
May 4, 2026
Siedlerchr
added a commit
that referenced
this pull request
May 5, 2026
* upstream/main: (775 commits) Chore(deps): Bump com.konghq:unirest-modules-gson in /versions (#15682) Chore(deps): Bump org.glassfish.jaxb:jaxb-runtime in /versions (#15681) Update dependency com.konghq:unirest-modules-gson to v4.9.0 (#15679) Integrate with SearchRxiv (#15373) Fix requirements (#15600) refactor: less objects during writing (#15677) Fix: suppress WARN for empty or blank column name in MainTableColumnModel#parse() (#15576) New Crowdin updates (#15676) Chore(deps): Bump com.github.ben-manes.caffeine:caffeine in /versions (#15673) Fix Nullwarnings - C (Mark bst package as nonnull by default) (#15663) Chore(deps): Bump com.github.javaparser:javaparser-symbol-solver-core (#15674) Chore(deps): Bump com.github.javaparser:javaparser-core in /versions (#15672) New Crowdin updates (#15669) Fix OpenRewrite (#15670) Udpate heylogs (and fix CHANGELOG.md) (#15671) Improve security and prevent shell injection for push2applications (#15628) Fix depdency analysis (#15668) Always use CI-local "gradle", instead of gradlew (#15667) Change OpenRewrite task to use rewriteDryRun (#15664) Add small documentation to parameter (#15666) ...
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Some small improvement on entry writing
Steps to test
Save a file
Checklist
CHANGELOG.mdin a way that can be understood by the average user (if change is visible to the user)