[GHC] #13569: Optimise code-gen for field-updates of large products

GHC ghc-devs at haskell.org
Mon Apr 17 23:22:58 UTC 2017


#13569: Optimise code-gen for field-updates of large products
-------------------------------------+-------------------------------------
        Reporter:  hvr               |                Owner:  (none)
            Type:  task              |               Status:  new
        Priority:  normal            |            Milestone:
       Component:  Compiler          |              Version:  8.0.1
  (CodeGen)                          |
      Resolution:                    |             Keywords:
Operating System:  Unknown/Multiple  |         Architecture:
                                     |  Unknown/Multiple
 Type of failure:  Other             |            Test Case:
      Blocked By:                    |             Blocking:
 Related Tickets:                    |  Differential Rev(s):
       Wiki Page:                    |
-------------------------------------+-------------------------------------

Comment (by nomeata):

 Is memcpy faster than a local loop?

 Also, would you memcpy the fields before, then set the field, and the
 fields after? Or would you rather memcpy the whole thing in one go, and
 then set the single field?

--
Ticket URL: <http://ghc.haskell.org/trac/ghc/ticket/13569#comment:4>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler


More information about the ghc-tickets mailing list