github gajus/slonik slonik@49.10.7

latest releases: @slonik/sql-tag@49.10.7, slonik-interceptor-query-logging@49.10.7, @slonik/utilities@49.10.7...
4 hours ago

Patch Changes

  • df0ff9c Thanks @gajus! - Reduce allocations in anyFirst() and manyFirst() on large result sets

    Both methods previously projected the first column of every row with Array.prototype.map, which allocates a callback closure on each call. They now pre-size the output array and fill it by index, avoiding the closure and the result array's dynamic growth. In an isolated micro-benchmark this was roughly 15% faster on a 1,000-row result, with correspondingly fewer garbage-collection scavenges. Behavior is unchanged.

  • Updated dependencies []:

    • @slonik/driver@49.10.7
    • @slonik/errors@49.10.7
    • @slonik/pg-driver@49.10.7
    • @slonik/sql-tag@49.10.7
    • @slonik/utilities@49.10.7

Don't miss a new slonik release

NewReleases is sending notifications on new releases.