-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Stop statically linking binaries when building with Nix. (#126)
### What It turns out that statically linking with musl increases our response time under load from (in a very specific benchmark, on my computer) ~10ms to ~30ms per response. Disabling static linking fixes this issue, bringing ndc-postgres in line with HGE v2. This feels like a good enough reason not to statically link the code. We ship the Docker image built with Nix, so this directly impacts production. It also simplifies development (in theory) because `nix build` and `cargo build` now have behavior that is more similar. ### How I deleted the Nix code that turns on static linking.
- Loading branch information
1 parent
0225728
commit b5cf0ad
Showing
2 changed files
with
5 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters