Files
turso/core
Jussi Saurio 3d635ecd67 Merge 'refactor/btree: don't clone WriteState in insert_into_page()' from Jussi Saurio
## Problem
We currently clone `WriteState` in every loop iteration of
`insert_into_page()`, which was probably done for borrow checker
reasons, but since `WriteState` has expanded to include buffers that
must not be moved in memory or dropped, it has necessitated a really
annoying workaround of wrapping the buffers in `Arc<Mutex>>` which is
just completely wasteful.
## Fix
Do not clone `WriteState` in `insert_into_page()`, and instead work with
the borrow checker a bit more. Note that `WriteState` still _implements_
`Clone` because it's also cloned in `balance_non_root()` - that can be a
separate refactor.

Reviewed-by: Avinash Sajjanshetty (@avinassh)
Reviewed-by: Nikita Sivukhin (@sivukhin)

Closes #2464
2025-08-06 11:29:55 +03:00
..
2025-08-02 20:06:05 -03:00
2025-07-28 14:49:07 -03:00
2025-07-16 14:02:56 +04:00
2025-08-05 22:26:19 -04:00
2025-07-14 11:20:49 +04:00
2025-08-05 13:34:51 +02:00
2025-06-23 19:52:13 +01:00
2025-06-30 10:01:03 +03:00
2025-08-06 11:28:27 +03:00
2025-07-31 20:51:43 +05:30
2025-01-28 14:55:38 -05:00
2025-06-23 19:52:13 +01:00
2025-07-30 13:34:49 +05:30
2025-01-28 14:55:38 -05:00
2025-08-05 16:24:49 -04:00
2025-06-23 19:52:13 +01:00
2025-07-30 17:33:59 -03:00
2025-06-30 09:54:13 +03:00
2025-08-04 20:18:44 +02:00