Visitar URL original
Improves multiple threads parsing efficiency by qingzhongli · Pull Request #57 · dom4j/dom4j · GitHub
Skip to content

Improves multiple threads parsing efficiency - #57

Merged
FilipJirsak merged 1 commit into
dom4j:masterfrom
qingzhongli:master
Jun 29, 2025
Merged

FilipJirsak merged 1 commit into
dom4j:masterfrom
qingzhongli:master

Conversation

@qingzhongli

Copy link
Copy Markdown
Contributor

Multiple threads concurrently parsing XML files causes most to be blocked. This patch changes the synchronized map to threadlocal map, which improves multiple threads parsing efficiency.

@codecov-io

codecov-io commented Dec 10, 2018 •

Copy link
Copy Markdown

Codecov Report

Merging #57 into master will increase coverage by <.01%.
The diff coverage is 90%.

Impacted file tree graph

@@             Coverage Diff              @@
##             master      #57      +/-   ##
============================================
+ Coverage     39.93%   39.93%   +<.01%     
- Complexity     1493     1494       +1     
============================================
  Files           145      145              
  Lines          9490     9487       -3     
  Branches       1192     1192              
============================================
- Hits           3790     3789       -1     
+ Misses         5320     5319       -1     
+ Partials        380      379       -1
Impacted Files Coverage Δ Complexity Δ
src/main/java/org/dom4j/tree/QNameCache.java 74.24% <90%> (+0.32%) 16 <4> (ø) ⬇️
src/main/java/org/dom4j/tree/NamespaceCache.java 90.69% <0%> (+2.32%) 13% <0%> (+1%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 8073066...76892de. Read the comment docs.

@FilipJirsak FilipJirsak added this to the 2.2.0 milestone Jan 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Development

Successfully merging this pull request may close these issues.

3 participants