Merge 'Remove some traces in super hot paths in btree' from Preston Thorpe

Particularly we were tracing `ImmutableRecord` / `BTreeKey` which would
then trace the bytes of records. These are super super hot paths and I
think we can probably remove even more to under debug assertions so we
dont eat those atomics/branches all the time.
This PR also introduces the `tracing_release` feature, which turns all
`trace!` and `debug!` macro invocations to noops at compile time, and
makes that feature available for all bindings.
it also removes the unused `lru` dependency, and cleans up the makefile
a bit

Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com>

Closes #2995
This commit is contained in:
Jussi Saurio
2025-09-11 13:33:25 +03:00
committed by GitHub
11 changed files with 47 additions and 52 deletions

View File

@@ -20,6 +20,6 @@ tracing.workspace = true
[features]
encryption = ["turso_core/encryption"]
browser = []
tracing_release = ["turso_core/tracing_release"]
[build-dependencies]
napi-build = "2.2.3"