[project @ 2001-07-23 10:47:16 by simonmar]
authorsimonmar <unknown>
Mon, 23 Jul 2001 10:47:16 +0000 (10:47 +0000)
committersimonmar <unknown>
Mon, 23 Jul 2001 10:47:16 +0000 (10:47 +0000)
commit6f83fbc0a8b201a3d2ad20e4d8c707613d45cf2a
tree5063d2733ff511f0c02cc9e5ef31bd2cd9751902
parent9a6296aaa11743c44e303c82d7a4bfa34201a39e
[project @ 2001-07-23 10:47:16 by simonmar]
Small changes to improve GC performance slightly:

  - store the generation *number* in the block descriptor rather
    than a pointer to the generation structure, since the most
    common operation is to pull out the generation number, and
    it's one less indirection this way.

  - cache the generation number in the step structure too, which
    avoids an extra indirection in several places.
ghc/includes/Block.h
ghc/includes/StgStorage.h
ghc/rts/BlockAlloc.c
ghc/rts/GC.c
ghc/rts/Storage.c
ghc/rts/Storage.h