Karya, built on 2022-03-21T01:30:44 (patch 89d1651424c35e564138d93424a157ff87457245)
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 #