Is it possible to skip the nursery?
问题 If I know a certain value is likely to survive its first encounter with the garbage collector, is there some way to let GHC know, so it can just allocate it directly somewhere outside the nursery? For instance, if I'm building up a large structure out of a bunch of smaller pieces, I know each piece will last at least until the whole structure is complete. 回答1: In the GHC garbage collector there are no hooks for hinting at the generation an object should be allocated to. However, you might be