Cleaned up LFSR_RATTR*__ -> LFSR_RATTR*
This finishes the eager -> lazy attr encoding rework.
Which makes it a good time to look at the total savings from adopting
lazy attr encoding, though there's still a bit of tinkering to do (eager
branches, cksum tags, etc):
code stack ctx
before lazy-attrs: 36280 2576 636
after lazy-attrs: 35592 (-1.9%) 2472 (-4.0%) 636 (+0.0%)
A ~free 688 byte savings in code and 104 bytes in stack is not bad.
This commit is contained in:
@@ -76,7 +76,7 @@ code = '''
|
||||
|
||||
// add to btree
|
||||
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATTRS(
|
||||
LFSR_RATTR__(
|
||||
LFSR_RATTR(
|
||||
LFSR_TAG_DATA, +1,
|
||||
&(uint8_t){'a'+(i % 26)}, 1))) => 0;
|
||||
|
||||
@@ -1851,7 +1851,7 @@ code = '''
|
||||
|
||||
// add to btree
|
||||
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATTRS(
|
||||
LFSR_RATTR__(
|
||||
LFSR_RATTR(
|
||||
LFSR_TAG_DATA, +1,
|
||||
&(uint8_t){'a'+(i % 26)}, 1))) => 0;
|
||||
|
||||
@@ -3626,7 +3626,7 @@ code = '''
|
||||
|
||||
// add to btree
|
||||
lfsr_btree_commit(&lfs, &btree, bid, LFSR_RATTRS(
|
||||
LFSR_RATTR__(
|
||||
LFSR_RATTR(
|
||||
LFSR_TAG_DATA, +1,
|
||||
&(uint8_t){'a'+(i % 26)}, 1))) => 0;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user