Skip to content

perf: verifyFetchedTarball called once for each package from a remote repository #10110

Closed

Description

@mpickering

verifyFetchedTarball has the effect of deserialising the index tarball (see call to Sec.withIndex).

verifyFetchedTarball is called individually for each package in the build plan (see ProjectPlanning.hs). Not once per repo.

The hackage tarball is now 880mb so it takes a non significant amount of time to deserialise this (much better after haskell/tar#95).

This code path is important as it can add 1s with these 38 calls on to the initial load of a project and scales linearly with the size of your build tree.

Reproducer: Simple project with "lens" dependency deserialises the index tarball 38 times.

Solution: Refactor verifyFetchedTarball to run once per repo rather than once per package.

Mitigation: Improve performance of deserialising .tar files (see haskell/tar#95)

Activity

  1. added 3 commits that reference this issue on Jun 14, 2024
    09c595b
    1d55ca7
    c70bac0
  2. added a commit that references this issue on Jun 16, 2024
    7d46115
  3. added a commit that references this issue on Jun 17, 2024
    555178f
  4. added 4 commits that reference this issue on Jun 18, 2024
    f174d79
    4596e74
    a29092e
    f54d0dc
  5. added 2 commits that reference this issue on Jun 24, 2024
    24a2b2a
    bb9d205
  6. added 4 commits that reference this issue on Jan 9, 2025
    e478f12
    d780adc
    bd7ba56
    9b2d009
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions