I'm trying to implement a recursive function in nodejs using setImmediate and for some reason the memory usage of the process is sky rocketing. I've narrowed the issue down to the fact that I'm calling "setImmediate" twice from within the function body. 

You can see this happen by comparing the memory usage of:

```
var numTicks = 0;
function doRecursiveThings(){
  setImmediate(doRecursiveThings);

  if(numTicks % 777000 == 0) {
    console.log(Date.now());
  }

  numTicks += 1;
}

doRecursiveThings();

```

Versus

```
var numTicks = 0;
function doRecursiveThings(){
  setImmediate(doRecursiveThings);

  if(numTicks % 777000 == 0) {
    console.log(Date.now());
  }

  numTicks += 1;

  setImmediate(doRecursiveThings);
}

doRecursiveThings();

```

You'll notice that the memory usage in the second example grows very quickly.