diff options
| -rw-r--r-- | README.md | 9 |
1 files changed, 5 insertions, 4 deletions
| @@ -459,10 +459,11 @@ test "Scripts" { | |||
| 459 | ## Relation to Ziglyph | 459 | ## Relation to Ziglyph |
| 460 | zg is a total re-write of some of the components of Ziglyph. The idea was to | 460 | zg is a total re-write of some of the components of Ziglyph. The idea was to |
| 461 | reduce binary size and improve performance. These goals were achieved by using | 461 | reduce binary size and improve performance. These goals were achieved by using |
| 462 | trie-like data structures instead of generated functions. Where Ziglyph uses a | 462 | trie-like data structures (inspired by [Ghostty's implementation](https://mitchellh.com/writing/ghostty-devlog-006)) |
| 463 | function call, zg uses an array lookup, which is quite faster. In addition, all | 463 | instead of generated functions. Where Ziglyph uses a function call, zg uses an |
| 464 | these data structures in zg are loaded at runtime from compressed versions in the | 464 | array lookup, which is quite faster. In addition, all these data structures in |
| 465 | binary. This allows for smaller binary sizes at the expense of increased memory | 465 | zg are loaded at runtime from compressed versions in the binary. This allows |
| 466 | for smaller binary sizes at the expense of increased memory | ||
| 466 | footprint at runtime. | 467 | footprint at runtime. |
| 467 | 468 | ||
| 468 | Benchmarks demonstrate the above stated goals have been met: | 469 | Benchmarks demonstrate the above stated goals have been met: |