Karya, built on 2023-08-29T07:47:28 (patch 7a412d5d6ba4968ca4155ef276a062ccdeb9109a)
Safe HaskellSafe-Inferred

Synth.ImGc

Description

Delete audio checkpoints with no symlinks, and those over a certain age. This means they correspond to some older score state, so I can delete them and loading a new score will still likely hit the cache.

If I update mtimes on cache hits, the minimum age should keep alive the previous few generations, so undo continues to hit them.

A more sophisticated approach would be to keep an explicit generation count, so I could delete by generation, but this way is simpler and rerendering isn't a big deal.

Documentation

data Stats Source #

Constructors

Stats 

Fields

Instances

Instances details
Monoid Stats Source # 
Instance details

Defined in Synth.ImGc

Methods

mempty :: Stats #

mappend :: Stats -> Stats -> Stats #

mconcat :: [Stats] -> Stats #

Semigroup Stats Source # 
Instance details

Defined in Synth.ImGc

Methods

(<>) :: Stats -> Stats -> Stats #

sconcat :: NonEmpty Stats -> Stats #

stimes :: Integral b => b -> Stats -> Stats #

Show Stats Source # 
Instance details

Defined in Synth.ImGc

Methods

showsPrec :: Int -> Stats -> ShowS #

show :: Stats -> String #

showList :: [Stats] -> ShowS #