This is built on other PRs now, so the relevant commit is just 7fea699806705831b38b384289694df0a7f62c63.
This replaces async with Promise in the simplest way possible.
Much of the time task pools are used with such a high number that they actually cause thrashing and decrease performance.
My assumption that the magic number of 16 tasks probably wasn't tested, but just chosen at random and this would actually be more performant queuing single tasks in a row anyway.
Since it's being called on a batch (which already contains some number of requests), I think that even more.
This is built on other PRs now, so the relevant commit is just 7fea699806705831b38b384289694df0a7f62c63.
This replaces
async
withPromise
in the simplest way possible.Much of the time task pools are used with such a high number that they actually cause thrashing and decrease performance.
My assumption that the magic number of 16 tasks probably wasn't tested, but just chosen at random and this would actually be more performant queuing single tasks in a row anyway.
Since it's being called on a batch (which already contains some number of requests), I think that even more.
Built on #60 just look at https://github.com/dashpay/dashd-rpc/commit/b94b29127ec88daf9345bbf42877c4d6f4845285 for actual code changes.
Essentially: