#4004: Improve performance of a few functions in Foreign.Marshal.*
--------------------------------------+-------------------------------------
  Reporter:  rtvd                     |          Owner:                  
      Type:  task                     |         Status:  closed          
  Priority:  normal                   |      Milestone:  6.14.1          
 Component:  Runtime System           |        Version:  6.12.2          
Resolution:  fixed                    |       Keywords:                  
Difficulty:                           |             Os:  Unknown/Multiple
  Testcase:                           |   Architecture:  Unknown/Multiple
   Failure:  Runtime performance bug  |          Patch:  1               
--------------------------------------+-------------------------------------
Changes (by simonmar):

  * status:  new => closed
  * resolution:  => fixed
  * milestone:  => 6.14.1


Comment:

 Thanks for the patches and benchmark.  I found the missing optimisation in
 the backend and fixed that:

 {{{
 Thu Apr 22 22:34:43 BST 2010  Simon Marlow <[email protected]>
   * Add missing constant folding and optimisation for unsigned division
   Noticed by Denys Rtveliashvili <[email protected]>, see #4004
 }}}

 and added some inlinings:

 {{{
 Fri Apr 23 05:47:29 PDT 2010  Simon Marlow <[email protected]>
   * inline allocaArray0, to fix withCString benchmark

 Mon Apr 19 14:53:33 BST 2010  Simon Marlow <[email protected]>
   * INLINE alloca and malloc
 }}}

 With these changes I get similar results to you with the benchmark
 program.

-- 
Ticket URL: <http://hackage.haskell.org/trac/ghc/ticket/4004#comment:1>
GHC <http://www.haskell.org/ghc/>
The Glasgow Haskell Compiler
_______________________________________________
Glasgow-haskell-bugs mailing list
[email protected]
http://www.haskell.org/mailman/listinfo/glasgow-haskell-bugs

Reply via email to