Changelog

nodejs/node · · 3 commits

SQLite and Buffer get faster searches

Buffer search APIs gain an end bound, while SQLite speeds up ASCII text handling and row key reuse. Streams callback plumbing is simplified.

Buffer search APIs now accept an end bound (ronagf2fda60)

buf.includes(), buf.indexOf(), and buf.lastIndexOf() now support an end parameter, letting callers limit the search range without creating a subarray first. The implementation and docs were updated across JS, C++, and typings, which makes the search APIs more flexible and can avoid extra allocations.

SQLite rows use cheaper strings and cached column names (thisalihassanef8f8f8)

SQLite now detects ASCII text and creates one-byte V8 strings when possible, reducing memory overhead for common query results. It also internalizes column names and caches them on StatementSync, invalidating the cache on reprepare so repeated iterate() calls can reuse row keys more efficiently.

Other misc changes

  • Simplified createPromiseCallback in webstreams util (aduh950fea430)