Skip to content
Snippets Groups Projects
  1. Jul 11, 2018
  2. Jul 06, 2018
  3. Jul 05, 2018
  4. Jul 04, 2018
  5. Jul 03, 2018
  6. Jul 02, 2018
    • Eelco Dolstra's avatar
      Merge pull request #2158 from Ma27/improve-search-ux · dd98683e
      Eelco Dolstra authored
      search.cc: improve UX for `nix search`
      dd98683e
    • Maximilian Bosch's avatar
      search.cc: improve UX for `nix search` · 6b74fdac
      Maximilian Bosch authored
      As proposed in #1634 the `nix search` command could use some
      improvements. Initially 0413aeb3 added
      some basic sorting behavior using `std::map`, a next step would be an
      improvement of the output.
      
      This patch includes the following changes:
      
      * Use `$PAGER` for outputs with `RunPager` from `shared.hh`:
        The same behavior is defined for `nix-env --query`, furthermore it
        makes searching huge results way easier.
      
      * Simplified result blocks:
        The new output is heavily inspired by the output from `nox`, the first
        line shows the attribute path and the derivaiton name
        (`attribute path (derivation name)`) and the description in the second
        line.
      6b74fdac
  7. Jun 23, 2018
  8. Jun 21, 2018
  9. Jun 19, 2018
  10. Jun 18, 2018
  11. Jun 16, 2018
  12. Jun 14, 2018
  13. Jun 13, 2018
  14. Jun 12, 2018
    • Eelco Dolstra's avatar
      Move EvalState from the stack to the heap · 0629601d
      Eelco Dolstra authored
      EvalState contains a few counters (e.g. nrValues) that increase
      quickly enough that they end up being interpreted as pointers by the
      garbage collector. Moving it to the heap makes them invisible to the
      garbage collector.
      
      This reduces the max RSS doing 100 evaluations of
      nixos.tests.firefox.x86_64-linux.drvPath from 455 MiB to 292 MiB.
      
      Note: ideally, allocations would be much further up in the 64-bit
      address space to reduce the odds of an integer being misinterpreted as
      a pointer. Maybe we can use some linker magic to move the .bss segment
      to a higher address.
      0629601d
    • Eelco Dolstra's avatar
      GC_malloc -> GC_MALLOC · c905d8b0
      Eelco Dolstra authored
      This makes it possible to build with -DGC_DEBUG.
      c905d8b0
    • Eelco Dolstra's avatar
      Don't scan for roots in dynamic libraries · 455d1f01
      Eelco Dolstra authored
      This reduces the risk of object liveness misdetection. For example,
      Glibc has an internal variable "mp_" that often points to a Boehm
      object, keeping it alive unnecessarily. Since we don't store any
      actual roots in global variables, we can just disable data segment
      scanning.
      
      With this, the max RSS doing 100 evaluations of
      nixos.tests.firefox.x86_64-linux.drvPath went from 718 MiB to 455 MiB.
      455d1f01
Loading