[KongchangAI]
Product

sqlite-loadable-rs

A framework and library for writing SQLite loadable extensions in Rust. It wraps the C ABI to expose interfaces such as registering scalar functions, facilitating the construction of memory-safe SQLite extensions.

Timeline (last 90 days)

Nov 8

In the initial implementation, the shared library size of the Rust extension based on Rusqlite was 321 KB, the version based on sqlite-loadable-rs was 298 KB, while the C extension was only 14 KB.

Unverified50%
Nov 8

In a test with 2 million rows, the per-row net overhead of the new C implementation was: 19 ns for mixed data, 16 ns for pure integers, and 18 ns for pure decimals; the first C implementation was 67 ns, 25 ns, and 106 ns respectively; the rusqlite version was 46 ns, 36 ns, and 55 ns respectively; the sqlite-loadable version was 41 ns, 32 ns, and 47 ns respectively.

Unverified50%
Nov 8

sqlite-loadable-rs is based on the loadable extension API of sqlite3ext.h, providing macros and type wrappers that let developers register functions in a manner close to native extensions, while handling details such as entry point symbols and memory allocators.

Unverified50%

All Facts (3)

Source Articles