Repository navigation
Commit f0866ff
committed
Faster checker and allocator: 4.5s -> ~1.2s checking bendc.bend
- Three Bool.pick recursions (digits.span, Str.first_dot, Str.until_hash)
evaluated both branches: every number literal scanned the rest of the
file. They match on a helper instead.
- The unsafe report found each name's users by scanning every use, and the
last-occurrence test scanned the rest of the order: a map and sets now.
- Map.bit is native (C and JS): Base rebuilds the key's prefix on every
bit it reads; the native shares the key.
- The allocator hands out a partly free block's slots from its bitmap, a
word at a time, instead of writing a free list through every free slot.
- Declarations are checked in parallel against the book as it stands
before each (a first pass builds those books); a failure, or template
instances, go through the sequential check, so output is unchanged.1 parent 9ab4f0f commit f0866ff
6 files changed
Lines changed: 15999 additions & 15231 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3022 | 3022 | | |
3023 | 3023 | | |
3024 | 3024 | | |
3025 | | - | |
| 3025 | + | |
3026 | 3026 | | |
3027 | 3027 | | |
3028 | 3028 | | |
| |||
4720 | 4720 | | |
4721 | 4721 | | |
4722 | 4722 | | |
4723 | | - | |
| 4723 | + | |
4724 | 4724 | | |
4725 | 4725 | | |
4726 | 4726 | | |
| |||
0 commit comments