Closed MagicDuck closed 6 years ago
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
Merging #31 into master will increase coverage by
0.41%
. The diff coverage is100%
.
@@ Coverage Diff @@
## master #31 +/- ##
==========================================
+ Coverage 70.84% 71.25% +0.41%
==========================================
Files 11 11
Lines 415 421 +6
Branches 64 64
==========================================
+ Hits 294 300 +6
Misses 121 121
Impacted Files | Coverage Δ | |
---|---|---|
lib/ConcatSource.js | 100% <100%> (ø) |
:arrow_up: |
lib/ReplaceSource.js | 92.85% <100%> (+0.11%) |
: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 e1880a0...a28dd05. Read the comment docs.
Thanks
using (+=) operator instead of array join/reduce to reduce memory allocation.
This causes nodejs to treat the strings internally as "concatenated strings" and reuse the pieces instead of allocating new memory. see: https://github.com/webpack/webpack-sources/issues/30
For the ConcatSource::size() change, we are simply removing the need to allocate an array to compute the size.