Features & Performance

Genix is designed from the ground up to be fast, efficient, and easy to maintain. Its compiler makes use of modern concepts found in web browsers, while leveraging the power of Go’s concurrency model to maximize performance.

Concurrency

Genix utilizes Go’s concurrency model, allowing it to process shortcodes while concurrently reading files from disk. This overlapping of tasks greatly reduces build times and ensures smooth scaling, even on large projects.

Lexer & Parser

At its core, Genix includes a custom Lexer and Parser similar to the technology used in modern browsers. Both components are built on state machines, which provide predictable and maintainable logic grouping. This not only improves parsing quality but also simplifies long-term maintenance and feature additions.

Caching

Genix includes built-in caching to minimize disk reads during compilation. By reducing redundant operations, caching further decreases the time needed to generate static files.

Performance

Genix is blazing fast. Benchmarks show that more than 3,000 static files can be parsed in less than 0.05 seconds. For reference, the entire Genix.dev website can generate all static files in just 63ms.

Scroll To Top