Skip to content

Commit 94d985f

Browse files
Move bechmarks data into Elements module
The plan is to have a completely separate instance of benchmarks for the Bitcoin jets, even for the core jets.
1 parent 710da8d commit 94d985f

6 files changed

Lines changed: 523 additions & 529 deletions

File tree

Haskell-Generate/GenRustJets.hs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,12 +60,12 @@ coreJetData :: (TyC x, TyC y) => CoreJet x y -> JetData x y
6060
coreJetData jet = JetData { jetName = mkName jet
6161
, jetCMR = cmr
6262
, jetModule = CoreModule
63-
, jetCost = Core.jetCost jet
63+
, jetCost = cost
6464
}
6565
where
66-
cmr | result == Elements.asJet (Elements.CoreJet jet) = result
67-
where
68-
result = Bitcoin.asJet (Bitcoin.CoreJet jet)
66+
-- :TODO: Switch to Bitcoin when the updated benchmarks become available.
67+
cmr = Elements.asJet (Elements.CoreJet jet)
68+
cost = Elements.jetCost (Elements.CoreJet jet)
6969

7070
elementsJetData :: (TyC x, TyC y) => Elements.JetType x y -> JetData x y
7171
elementsJetData jet = JetData { jetName = mkName jet

0 commit comments

Comments
 (0)