Skip to content
Snippets Groups Projects
  1. Dec 17, 2012
  2. Dec 14, 2012
  3. Dec 12, 2012
  4. Dec 11, 2012
  5. Dec 07, 2012
  6. Dec 06, 2012
  7. Dec 05, 2012
  8. Dec 04, 2012
  9. Dec 03, 2012
  10. Nov 30, 2012
    • Guido Trotter's avatar
      Create a genInstanceMaybeBiggerThan function · 50c302ca
      Guido Trotter authored
      
      This is used only once when testing Cluster.hs, but having it abstracted
      clarifies there what that call is about, makes that test shorter, and
      allows us to better do refactoring of the main genInstanceSmallerThan
      generator.
      
      Signed-off-by: default avatarGuido Trotter <ultrotter@google.com>
      Reviewed-by: default avatarIustin Pop <iustin@google.com>
      50c302ca
    • Iustin Pop's avatar
      Add explicit test for wrong OpCode arbitrary instances · dc4b5c42
      Iustin Pop authored
      
      I've been bitten a couple of times with arbitrary opcodes working on
      UTF-8 locale, but failing on buildbot (ASCII). So let's add an
      explicit test that checks always (even with UTF-8) for correct
      arbitrary values, showing explicitly which opcodes fail.
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarHelga Velroyen <helgav@google.com>
      dc4b5c42
    • Iustin Pop's avatar
      Remove read instances from our Haskell code · 139c0683
      Iustin Pop authored
      
      It turns out that optimising 'read' derived instances (via -O) for
      complex data types (like OpCode, or the various objects) can be slow
      to very slow. Disabling such instances results in (time make
      $all_our_haskell_binaries) large compile-time savings and also smaller
      (unstripped) binaries (by a significant amount):
      
      ghc 6.12:        time  htools sz  hconfd sz
        with read:    4m50s 12,244,694 14,927,928
        no read:      3m30s 10,234,305 12,536,745
      ghc 7.6:
        with read:   14m45s 13,694,761 15,741,755
        no read:      3m40s 11,631,373 13,245,134
      
      So let's remove these instances, since we never use read in production
      for our custom types, and even when debugging in GHCI, we can simply
      use the 'show' representation to create the types, without needing to
      actually parse from strings.
      
      Note: for the very slow ghc 7.6 compilation time, I filled a ticket
      (ghc #7450), since it is surprising(ly slow).
      
      Signed-off-by: default avatarIustin Pop <iustin@google.com>
      Reviewed-by: default avatarMichele Tartara <mtartara@google.com>
      139c0683
Loading