From fc0afaaa273f5b5d3696df87d70d5347a13bb9ac Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Mon, 18 Dec 2023 13:50:22 +0100 Subject: feat: compute history top to bottom Disables caching. --- app/Cache.hs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'app/Cache.hs') 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 -- cgit v1.2.3