Open
Description
plutarch-plutus/plutarch-ledger-api/src/Plutarch/LedgerApi/V1/Time.hs
Lines 67 to 96 in 429d1b0
This module is bricked. Switched from PInteger
to PPosixTime
and my benchmarks had a huge regression. The issue is that all the operations wrap and unwrap the data, this results in a ton of iData
and unIData
builtin calls, because each addition unwrapped each integer from data and then wraps the result. Instead we should have two definitions PosixTimeData
and PosixTime
or anything else so that this can be avoided and we can just keep it in the non-data encoded format until we want to go back to data encoding.
Metadata
Assignees
Labels
No labels
Activity