Repository navigation
Lazily create a single DOMSVGFactory for all annotationLayers - #22408
timvandermeij merged 1 commit into
Conversation
Given that the `DOMSVGFactory` constructor takes no parameters, we can re-use a single instance for all annotationLayers. This is also consistent with e.g. the drawLayers.
Reference testsResults for 0edd9bd (run, references from mozilla/pdf.js.refs@c5cf6c9ab0).
The report is kept for 30 days and replaced by the next run. |
Viewer preview🗑️ Viewer previews removed. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #22408 +/- ##
==========================================
- Coverage 90.58% 90.58% -0.01%
==========================================
Files 278 278
Lines 68568 68573 +5
==========================================
+ Hits 62115 62117 +2
- Misses 6453 6456 +3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Merging this PR will degrade performance by 4.44%
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
|
Good idea; thank you! |
Given that the
DOMSVGFactoryconstructor takes no parameters, we can re-use a single instance for all annotationLayers. This is also consistent with e.g. the drawLayers.