From 3c6e62b75293b6625509ade3c278fc2d4d147c30 Mon Sep 17 00:00:00 2001 From: Alexander Foremny Date: Thu, 7 Dec 2023 03:55:45 +0100 Subject: chore: increase performance by caching everything Initial cache generation is slower, as we are losing out on parallelism. --- app/Text/Diff/Extra.hs | 30 ++++++++++++++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 app/Text/Diff/Extra.hs (limited to 'app/Text') diff --git a/app/Text/Diff/Extra.hs b/app/Text/Diff/Extra.hs new file mode 100644 index 0000000..f558495 --- /dev/null +++ b/app/Text/Diff/Extra.hs @@ -0,0 +1,30 @@ +{-# LANGUAGE TemplateHaskell #-} +{-# OPTIONS_GHC -fno-warn-orphans #-} + +module Text.Diff.Extra where + +import Data.Binary (Binary) +import Generics.Deriving.TH (deriveAll0) +import Text.Diff.Parse.Types + +deriveAll0 ''FileDelta +deriveAll0 ''FileStatus +deriveAll0 ''Content +deriveAll0 ''Hunk +deriveAll0 ''Range +deriveAll0 ''Line +deriveAll0 ''Annotation + +instance Binary FileDelta + +instance Binary FileStatus + +instance Binary Content + +instance Binary Hunk + +instance Binary Range + +instance Binary Line + +instance Binary Annotation -- cgit v1.2.3