Closed cmdcolin closed 2 years ago
Merging #109 (fb54095) into master (32ae792) will decrease coverage by
0.17%
. The diff coverage is85.13%
.
@@ Coverage Diff @@
## master #109 +/- ##
==========================================
- Coverage 86.24% 86.07% -0.18%
==========================================
Files 41 41
Lines 2014 2032 +18
Branches 411 415 +4
==========================================
+ Hits 1737 1749 +12
- Misses 248 252 +4
- Partials 29 31 +2
Impacted Files | Coverage Δ | |
---|---|---|
src/cramFile/file.js | 81.72% <54.54%> (-1.71%) |
:arrow_down: |
src/cramFile/slice/decodeRecord.js | 92.18% <87.75%> (-0.29%) |
:arrow_down: |
src/cramFile/codecs/byteArrayLength.js | 95.83% <100.00%> (ø) |
|
src/cramFile/codecs/byteArrayStop.js | 86.20% <100.00%> (-0.46%) |
:arrow_down: |
src/cramFile/codecs/external.js | 85.18% <100.00%> (-1.03%) |
:arrow_down: |
src/cramFile/container/compressionScheme.js | 98.43% <100.00%> (+0.05%) |
:arrow_up: |
src/cramFile/slice/index.js | 87.14% <100.00%> (+0.12%) |
:arrow_up: |
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 32ae792...fb54095. Read the comment docs.
This PR makes cram parsing about 15% faster on shortread tests in the jb2profile suite, about 5-10% for longreads (that is for the end-to-end, so to make the entire test 15% faster, the cram parsing portion speedup could be greater 15% for example)
so, with 20x, 200x, 400x, 600x, 800x, 1000x shortreads
with longreads
overall, not a gigantic speedup but could maybe get more over time. note: uses typedarrays primarily instead of buffer. this typedarray usage may not work on a bigendian machines (typedarray uses native endianness), but big endian machines are exceedingly rare.