diff options
Diffstat (limited to 'app/Cache.hs')
-rw-r--r-- | app/Cache.hs | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/app/Cache.hs b/app/Cache.hs index 7af9ee7..4540fa4 100644 --- a/app/Cache.hs +++ b/app/Cache.hs @@ -4,6 +4,22 @@ module Cache ) where +-- TODO Reduce cached data size +-- +-- Right now we are caching complete `Issue` instances, which +-- contain the full issue title and description. For a fast +-- lookup it may already be enough to only store the issue's +-- +-- \* filename +-- \* start position +-- \* end position +-- +-- With this information we can use git to quickly look up the +-- complete issue text and parse it. +-- +-- @topic caching +-- @backlog + import Data.Binary (Binary, decodeFileOrFail, encodeFile) import Data.Text qualified as T import Git qualified |