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

setImmediate для Node.js #10

Closed
narqo opened this issue Jan 7, 2013 · 2 comments
Closed

setImmediate для Node.js #10

narqo opened this issue Jan 7, 2013 · 2 comments

Comments

@narqo
Copy link
Contributor

narqo commented Jan 7, 2013

Node.js 0.9.x есть поддержка setImmediate, вроде он «правильнее» чем process.nextTick.

nodejs/node-v0.x-archive#3845

@dfilatov
Copy link
Owner

dfilatov commented Jan 7, 2013

Поставил nodejs 0.9.5, запустил бенчмарк:

  • вариант с process.nextTick -- 893
  • вариант с setImmediate -- 24

Как-то оно странно медленно пока работает.

@dfilatov
Copy link
Owner

Вообщем семантика у setImmediate немного другая, и при ее использовании все сильно замедляется, поэтому оставляю process.nextTick для nodejs

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

No branches or pull requests

2 participants