| Title | AMC repeatedly allocates and initialises identical SegPrefs |
| Status | closed |
| Priority | nice |
| Assigned user | Richard Brooksby |
| Organization | Ravenbrook |
| Description | AMC repeatedly allocates and initialises identical SegPrefs. AMCBufferFill, which allocates segments for new buffers, allocates a fresh SegPref every time. This is not necessary because for a given generation the SegPref is always the same. This is a problem because: it's a bit inefficient (though I doubt we could measure it); the code gives the wrong impression (it gives the impression that the SegPref might dynamically vary, which it doesn't, by design). |
| Analysis | The SegPref can be allocated (and appropriately initialised) once, and associated (for example, stored in) the PoolGen. |
| How found | unknown |
| Evidence | [1] AMCBufferFill in <http://www.ravenbrook.com/project/mps/master/code/poolamc.c> |
| Observed in | 1.108.0 |
| Created by | David Jones |
| Created on | 2007-07-20 16:29:15 |
| Last modified by | Gareth Rees |
| Last modified on | 2014-04-10 15:41:35 |
| History | 2007-07-20 DRJ Created. 2013-03-19 GDR Assigned to RB. 2013-06-16 RB Downgraded to "nice" as this isn't affecting anyone (see job003499). |
| Change | Effect | Date | User | Description |
|---|---|---|---|---|
| 184342 | closed | 2014-02-14 15:15:07 | Richard Brooksby | Merging branch //info.ravenbrook.com/project/mps/branch/2014-01-29/mps-chain-zones/... into master. |