Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Recommendation for multiple URL performance? #119

Open
goldingdamien opened this issue Feb 5, 2024 · 1 comment
Open

Recommendation for multiple URL performance? #119

goldingdamien opened this issue Feb 5, 2024 · 1 comment
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@goldingdamien
Copy link

What is the recommended usage for optimized performance for multiple URLs?

My assumption is that a new instance of puppeteer is created with new browser and new page for each URL. Is this correct? Or are there optimizations made?

It would be nice if the same page could be used or some kind of page caching could be used for improving performance. Is this in any way possible?

Is https://github.com/sindresorhus/capture-website or https://github.com/sindresorhus/pageres better for multiple URL performance?
Or is performance not optimizable for either, and so another library should be used instead?

Regards.

@sindresorhus
Copy link
Owner

There is currently no reuse of existing browser instances. That would be a nice optimization, but it's not something I have had time to do yet.

@sindresorhus sindresorhus added enhancement New feature or request help wanted Extra attention is needed labels Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants