Skip to content

Conversation

@pavpanchekha
Copy link
Contributor

This PR is a big refactor of history.rkt, which handles derivations. Previously, this file had two code paths: render-history, which converted an alt to HTML, and render-json, which converted an alt to JSON. This PR refactors it so that the JSON conversion is primary and the HTML conversion only happens after JSON conversion. This has two benefits. First, previously we were serializing the HTML history and deserializing it; this meant large histories took a very long time. Second, it reduces some duplication, and in general makes the code clearer since you don't need to worry about updating the JSON or not.

@pavpanchekha pavpanchekha merged commit b3cb7cb into main Jun 28, 2025
6 checks passed
@pavpanchekha pavpanchekha deleted the history-from-json branch June 28, 2025 02:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants