11 ms·
The author might be able to benefit from using Promise.all() to perform his async searches concurrently. Also, I would recommend closing each page when you are
by WaffleIronMaker 5y ago
The author might be able to benefit from using Promise.all() to perform his async searches concurrently.
Also, I would recommend closing each page when you are done with it, using page.close().
- mattrighetti 5y agoI've received a PR suggesting just that [0], my concern is > Only thing that concerns me is that it will spawn n parallel requests to the website which could consume a lot of memory since we're talking about spawning a new tab with Puppeteer (Chrome :sigh:) for each link. [0]: https://github.com/mattrighetti/athome-scraper/pull/1 https://github.com/mattrighetti/athome-scraper/pull/1