Repository : ssh://darcs.haskell.org//srv/darcs/packages/containers On branch : master
http://hackage.haskell.org/trac/ghc/changeset/8142b0304511b7a687e508a6c8bf5e28680a3154 >--------------------------------------------------------------- commit 8142b0304511b7a687e508a6c8bf5e28680a3154 Author: Milan Straka <[email protected]> Date: Fri Apr 20 20:26:47 2012 +0200 Add empty line between Notes. >--------------------------------------------------------------- Data/IntMap/Base.hs | 2 ++ Data/IntSet.hs | 2 ++ Data/Map/Base.hs | 2 ++ Data/Set.hs | 2 ++ 4 files changed, 8 insertions(+), 0 deletions(-) diff --git a/Data/IntMap/Base.hs b/Data/IntMap/Base.hs index a77d7de..6980a6e 100644 --- a/Data/IntMap/Base.hs +++ b/Data/IntMap/Base.hs @@ -26,6 +26,7 @@ -- usually gets it right, but it is disastrous if it does not. Therefore we -- explicitly mark these functions INLINE. + -- [Note: Local 'go' functions and capturing] -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- Care must be taken when using 'go' function which captures an argument. @@ -34,6 +35,7 @@ -- must be checked for increased allocation when creating and modifying such -- functions. + -- [Note: Order of constructors] -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- The order of constructors of IntMap matters when considering performance. diff --git a/Data/IntSet.hs b/Data/IntSet.hs index 054cc11..514e94d 100644 --- a/Data/IntSet.hs +++ b/Data/IntSet.hs @@ -56,6 +56,7 @@ -- usually gets it right, but it is disastrous if it does not. Therefore we -- explicitly mark these functions INLINE. + -- [Note: Local 'go' functions and capturing] -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- Care must be taken when using 'go' function which captures an argument. @@ -64,6 +65,7 @@ -- must be checked for increased allocation when creating and modifying such -- functions. + -- [Note: Order of constructors] -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- The order of constructors of IntSet matters when considering performance. diff --git a/Data/Map/Base.hs b/Data/Map/Base.hs index bfb24e0..41072f9 100644 --- a/Data/Map/Base.hs +++ b/Data/Map/Base.hs @@ -49,6 +49,7 @@ -- unfolding of a function -- that is why all public functions are marked -- INLINABLE (that exposes the unfolding). + -- [Note: Using INLINE] -- ^^^^^^^^^^^^^^^^^^^^ -- For other compilers and GHC pre 7.0, we mark some of the functions INLINE. @@ -63,6 +64,7 @@ -- the Ord dictionary is not passed to 'go' and it is heap-allocated at the -- entry of the outer method. + -- [Note: Order of constructors] -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- The order of constructors of Map matters when considering performance. diff --git a/Data/Set.hs b/Data/Set.hs index d3b89e5..04e6278 100644 --- a/Data/Set.hs +++ b/Data/Set.hs @@ -47,6 +47,7 @@ -- unfolding of a function -- that is why all public functions are marked -- INLINABLE (that exposes the unfolding). + -- [Note: Using INLINE] -- ^^^^^^^^^^^^^^^^^^^^ -- For other compilers and GHC pre 7.0, we mark some of the functions INLINE. @@ -61,6 +62,7 @@ -- the Ord dictionary is not passed to 'go' and it is heap-allocated at the -- entry of the outer method. + -- [Note: Order of constructors] -- ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ -- The order of constructors of Set matters when considering performance. _______________________________________________ Cvs-libraries mailing list [email protected] http://www.haskell.org/mailman/listinfo/cvs-libraries
