Ticket #7121 (closed feature request: worksforme)

Opened 10 months ago

Last modified 10 months ago

garbage collection invokation, query functions for realtime

Reported by: centaurian_slug Owned by:
Priority: normal Milestone:
Component: Compiler Version: 7.4.2
Keywords: Cc:
Operating System: Unknown/Multiple Architecture: Unknown/Multiple
Type of failure: None/Unknown Difficulty: Unknown
Test Case: Blocked By:
Blocking: Related Tickets:

Description

how about a function such as this:- invokeGarbageCollector :: IO (int,int)

which can be called in a "main loop" for interactive realtime application to ensure garbage does not build up between frames. returning (bytes used,bytes free) would give scope for making caching/throttling decisions. perhaps further options for passing a number of generations to affect, or an allowed amount of memory to move.

Change History

Changed 10 months ago by centaurian_slug

some say manual GC invokation is never needed , whilst others say an application can benefit from running a full cycle after a major change ('new document..') the point about realtime is to be able to have information and hints relating to the passage of time in the program structure. in an animation loop one has a clear cycle where behaviour must be consistent.

Changed 10 months ago by simonmar

  • status changed from new to closed
  • difficulty set to Unknown
  • resolution set to worksforme
Note: See TracTickets for help on using tickets.