Projects STRLCPY graphql-engine Commits d831d983
🤬
  • server: -O1 + -funfolding-use-threshold=640, for memory residency

    This increases compile times for full build of exe:graphql-engine from
    13min to 16min on my machine, less on CI.
    
    NOTE: O1 on its own improves compile time slightly (~80 sec) and doesn't
    negatively impact performance at all, seemingly:
        https://github.com/hasura/graphql-engine-mono/pull/7029
    GitOrigin-RevId: 040851acb57f63943a48da03004c40e31c333c75
  • Loading...
  • Brandon Simmons committed with hasura-bot 2 months ago
    d831d983
    1 parent a9216a41
  • ■ ■ ■ ■ ■
    server/graphql-engine.cabal
    skipped 68 lines
    69 69   -- in the graphql-engine 'executable' stanza below, and in any other dependent
    70 70   -- executables (See mono #2610):
    71 71   -fexpose-all-unfoldings
    72  - -O2
     72 + -- Use O1 over O2, as (as of writing) it improves compile times a little, without
     73 + -- hurting performance:
     74 + -O1
     75 + -- This seems like a better default for us, lowering memory residency without
     76 + -- impacting compile times too much, though it does increase binary size:
     77 + -funfolding-use-threshold=640
    73 78   else
    74 79   -- we just want to build fast:
    75 80   ghc-options: -O0
    skipped 1268 lines
Please wait...
Page is in error, reload to recover