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

Parallelize browser processes rather than pages #50

Merged
merged 4 commits into from
Jun 3, 2018

Conversation

Quramy
Copy link
Member

@Quramy Quramy commented May 30, 2018

I've created this for #7 :)

This PR makes parallelization in the CAPTURE phase more efficient. It because that considering TCP connection restrictions of Chromium, parallelization of browser processes can use CPU more efficiently than parallelization of pages in one browser process.

@Quramy Quramy changed the title [wip] chore: parallel browser process Parallelize browser processes rather than pages May 30, 2018
@Quramy
Copy link
Member Author

Quramy commented May 30, 2018

@tsuyoshiwada I also want to parallelize the PREPARE phase. But I do not know when I do it 😅 If I would do this, I open another PR.

Copy link
Collaborator

@wadackel wadackel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wow! It works very fast! Thx 🙏

I only commented on one point so I'm happy if you can check it 😃

@@ -1,7 +1,6 @@
import * as puppeteer from 'puppeteer';
import { EventTypes } from '../constants';
import { CLIOptions } from '../../models/options';
import { createArray } from '../utils';
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since createArray is unnecessary, it may be better to delete it.

Copy link
Collaborator

@wadackel wadackel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM 🐶 ✨

@wadackel wadackel merged commit 3e66b9f into reg-viz:master Jun 3, 2018
@wadackel
Copy link
Collaborator

wadackel commented Jun 3, 2018

Hi @Quramy, Thank you for contribute!!
Released as 1.1.0-alpha.2 🎉

@Quramy Quramy deleted the perf-tune branch June 3, 2018 08:21
@Quramy Quramy mentioned this pull request Jun 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants