You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is a potential improvement of Nixpkgs Emacs infra.
Currently, when generating index for MELPA packages, their recipes are downloaded and then hashed. The url (actually, the git commit to construct the url is stored) and hash of a recipe are stored in the index (recipes-archive-melpa.json). When building one of these packages, its recipe is downloaded again using the stored url and hash.
If we embed the recipe itself into the generated index, then there is no need to download it again at build-time.
Note that this may even decrease the index file size because the git commit and content hash of a recipe are replaced with its content and usually the content is smaller. To further decrease the index size, we can store the smaller one. But I am afraid it only brings marginal improvement.
The motivation is that the recipe format is structured, and can be generated by using a template.
However I erroneously thought that formats was a string.
Describe the bug
This is a potential improvement of Nixpkgs Emacs infra.
Currently, when generating index for MELPA packages, their recipes are downloaded and then hashed. The url (actually, the git commit to construct the url is stored) and hash of a recipe are stored in the index (
recipes-archive-melpa.json
). When building one of these packages, its recipe is downloaded again using the stored url and hash.If we embed the recipe itself into the generated index, then there is no need to download it again at build-time.
Note that this may even decrease the index file size because the git commit and content hash of a recipe are replaced with its content and usually the content is smaller. To further decrease the index size, we can store the smaller one. But I am afraid it only brings marginal improvement.
Additional context
Add a 👍 reaction to issues you find important.
The text was updated successfully, but these errors were encountered: