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

use experimental worker_threads to run tasks #29

Merged
merged 1 commit into from
Jul 16, 2018
Merged

Conversation

slonka
Copy link
Contributor

@slonka slonka commented Jul 13, 2018

  • after merging we need to publish this branch (next)

@slonka slonka requested a review from kwiatkk1 July 13, 2018 12:23
workerStartTime.should.be.at.least(callTime);
workerNodes.workersQueue.forEach(worker => {
const startDate = worker.process.startDate;
if (startDate) {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't like this - suggestions welcomed

// report readiness on a first message received from the child
// process (as it means that the child has loaded all the stuff
// into a memory and is ready to handle the calls)
if (message === 'ready') {
Copy link
Contributor Author

Choose a reason for hiding this comment

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

I don't like this - suggestions welcomed

@slonka slonka force-pushed the native-workers branch 2 times, most recently from dda8c0a to 40d674a Compare July 13, 2018 12:49
stdio: [0, 1, 2, 'pipe', 'ipc']
this.startDate = null;

const child = new worker.Worker(require.resolve('./child-loader'));
Copy link
Contributor Author

Choose a reason for hiding this comment

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

rename child to thread?

@slonka slonka force-pushed the native-workers branch 5 times, most recently from 5b55aa7 to df9546f Compare July 16, 2018 09:03
@kwiatkk1
Copy link
Contributor

Travis is now configured to use yarn, so we should update yarn.lock here (...or remove it completely and setup npm on travis).

},
"scripts": {
"docs": "jsdoc2md -l off -t docs-src/Readme.hbs lib/*.js > Readme.md; echo",
"test": "mocha --trace-warnings -r tests/utils/setup.js {lib,tests}/**/*.spec.js",
"test": "node --experimental-worker node_modules/.bin/_mocha --trace-warnings -r tests/utils/setup.js {lib,tests}/**/*.spec.js",
Copy link
Contributor

Choose a reason for hiding this comment

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

We can get rid of msgpack-lite dependency, as it's not needed anymore.

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.

2 participants