Uploaded image for project: 'Node.js Driver'
  1. Node.js Driver
  2. NODE-332

Use setImmediate instead of process.nextTick

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: 1.4.23
    • Component/s: None
    • Labels:

      Pro:
      process.nextTick insert on the head the callback destroying the nature of the nodejs stack.
      It's better to use setImmadiate to add on the tick stack all callbacks.
      Cons:
      setImmediate is slower than process.nextTick

            Assignee:
            christkv Christian Amor Kvalheim
            Reporter:
            tomallevi@gmail.com Tommaso Allevi
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: