mirror of
https://github.com/aljazceru/turso.git
synced 2025-12-30 14:34:22 +01:00
- Also added a benchmark for opening databases, the main thing that is slowing `Database::open_file` is `parse_schema_rows`. - `to_uppercase` was being called multiple times, leaving a relevant mark on stack traces due to multiple allocations. `make_ascii_upper` reuses the memory and is faster due to not handling unicode characters (still compatible with sqlite). - Do direct btree calls instead of creating a program for updating `Schema` with `Schema::make_from_btree`. - Faster type substr comparison using fixed size `u8` slices. <img width="952" height="507" alt="image" src="https://github.com/user- attachments/assets/0d0c52ff-05a1-431e-a93d-e333b53c0bb8" /> Reviewed-by: Jussi Saurio <jussi.saurio@gmail.com> Closes #2042