Cleanup, fixed inconsistent names, moved btree attr allocation up

- len => size - these all refer to byte-arrays
- buf => buffer - this doesn't matter but buffer is currently used more
- delta => d - we use delta for weight deltas, gstate deltas, using a
  slightly different name (if somehow even less descriptive) for byte
  offset-offsets helps avoid name collisions a little bit

The storage changes in btree operations should've probably been a
separate commit but got wrapped up in these changes. Now the high-level
btree operations are responsible to the attr storage for all internal
btree commits, as defined by LFSR_BTREE_SCRATCHATTRS.

This leads to slightly less total RAM usage, since it allows the
low-level btree operations to cannibilize the attrs of the high-level
btree operations as a part of its unrolled-tail-recursive
implementation.

This also includes some other cleanup such as removing old commented out
parts.
This commit is contained in:
Christopher Haster
2023-04-10 00:30:32 -05:00
parent 774ae676e4
commit 47e4f719f5
3 changed files with 227 additions and 313 deletions
+202 -288
View File
File diff suppressed because it is too large Load Diff