Skip to content

Commit

Permalink
docs(changeset): Fix performance issue in loadOne()/loadMany() du…
Browse files Browse the repository at this point in the history
…e to using `setTimeout(cb, 0)`, now using `process.nextTick(cb)`. High enough concurrency and the issue goes away, but with limited concurrency this causes a lot of `(idle)` in profiling and thus completing 10k items took longer. (Lots of time spent in `epoll_pwait`.)
  • Loading branch information
benjie committed May 14, 2024
1 parent f3d1426 commit a674a99
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .changeset/lemon-spoons-dress.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
---
"grafast": patch
---

Fix performance issue in `loadOne()`/`loadMany()` due to using
`setTimeout(cb, 0)`, now using `process.nextTick(cb)`. High enough concurrency
and the issue goes away, but with limited concurrency this causes a lot of
`(idle)` in profiling and thus completing 10k items took longer. (Lots of time
spent in `epoll_pwait`.)

0 comments on commit a674a99

Please sign in to comment.