question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

6.56 MB install size

See original GitHub issue

c8 has a huge 6.56 MB install size:

https://packagephobia.now.sh/result?p=c8

With 97 modules in the dependency graph:

https://npm.anvaka.com/#!/view/2d/c8

Screen Shot 2019-12-04 at 10 12 51 pm

It is surprising how heavy this package is, considering v8 does all the heaving lifting and it mostly just needs to display a report. Is this something that can be improved upon, are there low hanging fruit?

handlebars (4.42 MB) jumps out.

From a complexity perspective, could the v8 coverage data could be reported directly, without a conversion process to the instanbul format?

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
SimenBcommented, Dec 4, 2019

Handlebars has been removed from beta version of istanbul, which was upgraded in #168. You’re waiting for #170

0reactions
bcoecommented, Dec 16, 2019

@jaydenseric 👍

I tried for about 3 days to do my own merging of V8 code coverage data from multiple processes, but found many bugs and mysteries (very little docs) around what exactly makes

Yes, my first implementation of this was terrible and Node.js’ merging process, which involved merging 1000s of reports took 30 minutes. @demurgos did an incredible job with this algorithm.

It only has around 240 source lines of code, so the vast majority of the install size comes from the @bcoe/v8-coverage dependency, which unfortunately has a 271 kB install size:

Mind listing the install size of c8@next, and potentially nyc@next on your package’s README?

https://packagephobia.now.sh/result?p=c8@7.0.0-candidate.0

As @SimenB mentions, a good chunk of the install size is handlebars, so the packages are a bit smaller than you draw attention to.

I’ll have next moved to latest midway through this week.

Very sad that V8 coverage data is really only reliable enough to use from Node.js v13.3+

I’m glad to have another person debugging V8 and filing issues. I’m actually feeling fairly positive, because it’s taken two years to get to the point where V8’s coverage is comprehensive enough to consider.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Space Required To Store Every Nintendo Game
You'll need roughly 7.53TB (yep, that's TERABYTES!) of space to be able to emulate every darn Nintendo video game! With the Wii making...
Read more >
View your app's download and install sizes - Play Console Help
Check and compare sizes and size-related metrics​​ After you've released your app on a production track, here's where you can see your app's...
Read more >
Download Extreme Car Driving Simulator 6.56.0 for Android
Take your car to the limit in a realistic environment. Advertisement. Download. 185.46 MB. free. Play on PC Powered by Gameloop logo.
Read more >
Factorio install size is EXACTLY 1000 MB !! This just feels ...
Factorio install size is EXACTLY 1000 MB !! This just feels _sooo_ good !!! ; u/shinarit avatar shinarit · 1GB is ~953.67MiB. 1GiB...
Read more >
Download - REAPER
Download REAPER below for a free, fully functional 60-day evaluation. No registration or personal details are required. ... REAPER supports all Windows versions ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found