Skip to content

fix for sync writes in older node #188

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

Merged
merged 1 commit into from
Mar 11, 2016
Merged

fix for sync writes in older node #188

merged 1 commit into from
Mar 11, 2016

Conversation

calvinmetcalf
Copy link
Contributor

possible fix for #187

@mcollina
Copy link
Member

BTW, we should really use setImmediate with 0.10.

$ node -v
v0.10.41
~/Repositories/fastbench (master)
$ node example.js
benchSetTimeout*1000: 1333ms
benchSetImmediate*1000: 4ms
benchSetTimeout*1000: 1327ms
benchSetImmediate*1000: 3ms

@calvinmetcalf
Copy link
Contributor Author

setImmediate is not available in node 0.10

@mcollina
Copy link
Member

I think setImmediate was introduced in v0.10

$ node -v
v0.10.41
~
$ node
> setImmediate(console.log, 'hello world')
{ _idleNext:
   { _idleNext: [Circular],
     _idlePrev: [Circular] },
  _idlePrev:
   { _idleNext: [Circular],
     _idlePrev: [Circular] },
  _onImmediate: [Function] }
> hello world

undefined
>
(^C again to quit)
> ~
$

@calvinmetcalf
Copy link
Contributor Author

hm in that case, that will simplify things

On Sat, Feb 27, 2016 at 12:32 PM Matteo Collina [email protected]
wrote:

I think setImmediate was introduced in v0.10

$ node -v
v0.10.41
~
$ node

setImmediate(console.log, 'hello world')
{ _idleNext:
{ _idleNext: [Circular],
_idlePrev: [Circular] },
_idlePrev:
{ _idleNext: [Circular],
_idlePrev: [Circular] },
_onImmediate: [Function] }
hello world

undefined

(^C again to quit)
~
$


Reply to this email directly or view it on GitHub
#188 (comment)
.

@calvinmetcalf
Copy link
Contributor Author

I am happy to be wrong about this 😄

@calvinmetcalf
Copy link
Contributor Author

how do we feel about this one?

@mcollina
Copy link
Member

LGTM

@calvinmetcalf
Copy link
Contributor Author

rebased will merge when green

On Fri, Mar 11, 2016 at 12:08 PM Matteo Collina [email protected]
wrote:

LGTM


Reply to this email directly or view it on GitHub
#188 (comment)
.

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