Repository navigation
Use TypedArray.prototype.set in the _makeWrapper PostScript wasm-code - #22379
Snuffleupagus wants to merge 1 commit into
Conversation
Reference testsResults for 9957f99 (run, references from mozilla/pdf.js.refs@d16403bcaa).
The report is kept for 30 days and replaced by the next run. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #22379 +/- ##
=======================================
Coverage 90.57% 90.58%
=======================================
Files 278 278
Lines 68586 68564 -22
=======================================
- Hits 62123 62109 -14
+ Misses 6463 6455 -8
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:
|
Viewer previewCommit 9957f99 (build logs).
Previews are removed when the PR closes and may be pruned after 30 days without an update. |
Merging this PR will degrade performance by 10.27%
Warning Please fix the performance issues or acknowledge them on CodSpeed. Performance Changes
Tip Investigate this regression by commenting Comparing Footnotes
|
19af665 to
aac2fb4
Compare
…code Rather than building an intermediate `writeOut` function, which always sets all of the `outView` anyway, it seems that we can simply use `TypedArray.prototype.set` instead.
|
I don't know what to make of the benchmarking results above, since I cannot reproduce any regressions locally in Firefox Nightly when testing with the following manifest file: [
{
"id": "colorspace_cos",
"file": "pdfs/colorspace_cos.pdf",
"md5": "d3703784c2558f33e03b91dccb745b6c",
"rounds": 500,
"type": "eq"
},
{
"id": "function-based-shading",
"file": "pdfs/function_based_shading.pdf",
"md5": "7796f0131e7d6428c1bf24a73ff13f95",
"rounds": 500,
"type": "eq"
},
{
"id": "personwithdog",
"file": "pdfs/personwithdog.pdf",
"md5": "cd68fb2ce00dab97801b3e51495b99e3",
"rounds": 500,
"type": "eq"
}
]which gave the following results, indicating no significant regression, when comparing this patch against the |
aac2fb4 to
9957f99
Compare
Rather than building an intermediate
writeOutfunction, which always sets all of theoutViewanyway, it seems that we can simply useTypedArray.prototype.setinstead.Edit: I feel like I'm most likely overlooking some trivial reason for why this is a stupid idea.