slonik@49.10.3
·
12 commits
to main
since this release
Patch Changes
-
e445feaThanks @gajus! - Avoid copying the interceptor array on every queryexecuteQueryInternalcopiedclientConfiguration.interceptorswith.slice()
on every query before running the result hooks. The array isreadonlyand is
never mutated during a query — the before-query and error hooks already iterate
it directly — so the copy was a wasted array allocation per query.The interceptors are now read directly. Behaviour is unchanged; this removes
fixed-per-query allocation, most noticeable on high-throughput workloads. -
Updated dependencies []:
- @slonik/driver@49.10.3
- @slonik/errors@49.10.3
- @slonik/pg-driver@49.10.3
- @slonik/sql-tag@49.10.3
- @slonik/utilities@49.10.3