Skip to content

Commit

Permalink
more cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
imalsogreg committed Jun 30, 2023
1 parent d2043e1 commit ab3ac97
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 1 addition & 3 deletions src/Pact/Eval.hs
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ module Pact.Eval
,getSizeOfVersion
) where

import Debug.Trace (trace)

import Bound
import Control.Lens hiding (DefName)
import Control.DeepSeq
Expand Down Expand Up @@ -1134,7 +1132,7 @@ reduceAppWithMemoTable app = do
fcResult <- catchesPactError (termFunctionCall reduce app)
case fcResult of
Right fc -> case memoLookup fc memoTable of
Just res -> trace ("Cache hit: " ++ show res) $ return (fromPactValue res)
Just res -> return (fromPactValue res)
Nothing -> reduceApp app
Left _ -> reduceApp app

Expand Down
2 changes: 2 additions & 0 deletions tests/pact/memoize.repl
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
(env-gasmodel "table")
(env-gaslimit 1000000)

(env-clear-memotable)

; Define an expensive function, which we will use to test memoization.
(module m g
(defcap g () true)
Expand Down

0 comments on commit ab3ac97

Please sign in to comment.