OneNoteDev / WebClipper

The OneNote Web Clipper extension
https://www.onenote.com/clipper
MIT License
338 stars 55 forks source link

Project bundling is slow #198

Closed mttwc closed 7 years ago

mttwc commented 7 years ago

This might be because each test file is built seperately into its own output, so there's a lot of repeated imports going on. I'll investigate if we can build a single test file with all the tests inside.

mttwc commented 7 years ago

The main issue is with browserify, that is running super slowly. I'm investigating an incremental bundling process with watchify that will hopefully allow for super quick build times after the first one.

mttwc commented 7 years ago

I found that watchify would not be suitable for our needs as it requires the starting of some sort of watch process. https://github.com/jsdf/browserify-incremental looks like it will allow us to cache browserified results between explicit build commands, so I'll try and make that work.

mttwc commented 7 years ago

Testing browserifyinc on the cmd line on clipper.js yields a roughly 5.3x speedup. I'm trying to get it to work in our gulp :(

mttwc commented 7 years ago

Got it to work, but when sharing the same cache, the speedup isn't as great as what was reflected in my initial testing on the command line. I'm going to try and find out why this is so.

mttwc commented 7 years ago

Fixed with https://github.com/OneNoteDev/WebClipper/pull/208