Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Comparison to nix-serve-ng #335

Open
srid opened this issue May 21, 2024 · 1 comment
Open

Comparison to nix-serve-ng #335

srid opened this issue May 21, 2024 · 1 comment

Comments

@srid
Copy link

srid commented May 21, 2024

Harmonia is a binary cache for nix that serves your /nix/store as a binary cache over http. It's written in Rust for speed.

nix-serve-ng's benchmarks indicate that harmonia is somewhat slower than nix-serve-ng, notably for fetching 10+ MB NARs (harmonia is slower than nix-serve itself here).

image

Are these benchmarks accurate for the code in master branch?

In any case, mentioning how this project compares (pros? cons?) to nix-serve-ng in the README would be useful.

@Mic92
Copy link
Member

Mic92 commented Jun 12, 2024

No. They are not up-to-date. Many optimization have landed since than in harmonia. Before it used some slow callback to nix when it was streaming the nar file. I add a nar serializer in rust so it can be inlined in the send path. I also fixed some unaligned memcpy.

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

No branches or pull requests

2 participants