Skip to content

Big slowdown with very big build logs #95

Open
@K900

Description

With this derivation:

{ pkgs ? (import <nixpkgs> {}) }:
pkgs.stdenv.mkDerivation {
  name = "robot-that-screams";
  buildCommand = ''
    for _ in {0..1000000}; do
      echo AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA
    done
  '';
}

nix-build runs in under 10 seconds:

nix-build -v --log-format internal-json &> /dev/null  1.89s user 0.79s system 33% cpu 7.898 total

nom-build takes minutes (exact time TBC)

nom-build &> /dev/null  4344.87s user 1614.41s system 114% cpu 1:26:59.89 total

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions