Closed ledbit closed 6 years ago
Merging #4 into master will decrease coverage by
1.01%
. The diff coverage is60%
.
@@ Coverage Diff @@
## master #4 +/- ##
==========================================
- Coverage 94.75% 93.73% -1.02%
==========================================
Files 3 3
Lines 343 351 +8
Branches 41 45 +4
==========================================
+ Hits 325 329 +4
- Misses 18 22 +4
Impacted Files | Coverage Δ | |
---|---|---|
lz4.js | 91.69% <60%> (-1.3%) |
:arrow_down: |
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 bab5b9f...e51316b. Read the comment docs.
Ah, I missed this - looks pretty good.
Do you think the hasCopyWithin
check is sufficient? Do any browsers have partial support for these functions? I am pretty sure the last time I was messing around, I found that browser support for Typed Arrays was oddly inconsistent.
In any case, I'm interested in merging this either way.
(I probably should test this across a few browsers first, though.)
Two main reasons for perf gains:
Decompress a 12MB file, representing 100MB of raw data orig: 230ms copyWithin15+: 145ms subarray: 130ms copyWithin31+: 120ms lz4cat: 70ms