Improve CPU usage by invoking task less often

Only invoke task to export tasks data when pending.data taskwarrior file has changed.

This reduces CPU usage when idle from 50% to 2% on my system.
This commit is contained in:
desbma 2021-03-01 01:26:37 +01:00
parent 3ad7c46c77
commit dc2ee91b7e
4 changed files with 58 additions and 4 deletions

View file

@ -35,6 +35,7 @@ crossterm = { version = "0.17", optional = true, default-features = false }
rustyline = "7.1.0"
uuid = { version = "0.8.1", features = ["serde", "v4"] }
better-panic = "0.2.0"
shellexpand = "2.1"
[package.metadata.rpm]
package = "taskwarrior-tui"