Collapsed lfsr_ftree_t struct into lfsr_file_t

One less struct to worry about, and less code/stack pressure from
passing around multiple pointers.

There were some naming collisions:

- lfsr_ftree_size -> lfsr_file_bsize
- lfsr_ftree_read -> lfsr_file_read_
- lfsr_ftree_flush -> lfsr_file_flush_

I'm not sure this should be the final result. There are definitely some
rough spots, the hacky "pseudo-file" in lfsr_traversal_t for example.
Having a name specific to file btrees was also useful for naming/
documenting things...

But the code savings are hard to shake a stick at:

            code          stack
  before:  33260           3024
  after:   32874 (-1.2%)   2952 (-2.4%)
This commit is contained in:
Christopher Haster
2024-01-09 14:57:23 -06:00
parent 7d8315a598
commit 60d52d6cef
2 changed files with 279 additions and 298 deletions
+271 -287
View File
File diff suppressed because it is too large Load Diff