diff options
author | 2012-06-10 16:07:48 -0400 | |
---|---|---|
committer | 2012-06-10 16:07:48 -0400 | |
commit | 2de50f733a01ce5b282ff0f6eb8a1101bd496216 (patch) | |
tree | 12c71735b637b41d6ffbfb3a5a1b92c14ca255f8 /doc/design/assistant/leftovers.mdwn | |
parent | 6e54907e3570f23b50d97f26c7c0580b77ecf81d (diff) |
smart commit thread
The commit thread now has access to a channel containing the times of
all uncommitted changes. This lets it be smart about detecting busy times
when a batch job is running (such as rm -rf, or untarring something, etc),
and avoid committing until it's done. While at the same time, instantly
committing one-off changes that the user is going to expect to see
immediately.
I had to use STM to implement the channel, because of
http://hackage.haskell.org/trac/ghc/ticket/4154
While this adds a dependency, I always wanted to use STM, so this actually
makes me happy. ;)
Also happy that shouldCommit is a pure function, so other commit smartness
strategies can easily be played with. Although the current one seems pretty
good.
There is one bug, for some reason it does double commits, every time.
Diffstat (limited to 'doc/design/assistant/leftovers.mdwn')
0 files changed, 0 insertions, 0 deletions