fcfort / betterment-csv-chrome

Betterment CSV export Chrome extension
https://chrome.google.com/webstore/detail/betterment-pdf-to-csv-exp/jbneodpofmnammepmnejgkacdbjojcgn
Apache License 2.0
10 stars 4 forks source link

Throttle PDF parsing workers #13

Open fcfort opened 8 years ago

fcfort commented 8 years ago

Currently the script creates workers to parse PDFs as fast as it can. If there are a large number of PDF URLs on the page, this can slow down the browser.

Create some throttling here so that it is only doing so many at a time or one every second or something.

fcfort commented 8 years ago

In fact it creates one web worker per call to parse a PDF

fcfort commented 8 years ago

Perhaps a https://github.com/andywer/threads.js fixed thread pool.