forked from IntersectMBO/plutus
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Evaluation] Statically unroll 'itraverseCounter_' (IntersectMBO#5265)
Results in a statically unrolled loop: ```haskell let! { (# ipv10_X1x, ipv11_X1y #) ~ <- $wf_svLt 0# (ipv8_itGb `cast` <Co:8>) } in let! { (# ipv12_X1B, ipv13_X1C #) ~ <- $wf_svLt 1# ipv10_X1x } in let! { (# ipv14_X1F, ipv15_X1G #) ~ <- $wf_svLt 2# ipv12_X1B } in let! { (# ipv16_X1U, ipv17_X1V #) ~ <- $wf_svLt 3# ipv14_X1F } in let! { (# ipv18_X1X, ipv19_X1Y #) ~ <- $wf_svLt 4# ipv16_X1U } in let! { (# ipv20_X20, ipv21_X21 #) ~ <- $wf_svLt 5# ipv18_X1X } in let! { (# ipv22_X23, ipv23_X24 #) ~ <- $wf_svLt 6# ipv20_X20 } in let! { (# ipv24_X29, ipv25_X2a #) ~ <- $wf_svLt 7# ipv22_X23 } in let! { (# ipv26_X2f, ipv27_X2g #) ~ <- $wf_svLt 8# ipv24_X29 } in let! { (# ipv28_X2l, ipv29_X2m #) ~ <- $wf_svLt 9# ipv26_X2f } in let! { UnsafeRefl v4_itGA ~ <- unsafeEqualityProof } in let! { UnsafeRefl v5_itGz ~ <- unsafeEqualityProof } in let! { __DEFAULT ~ wild19_itGD <- setByteArray# (ipv5_itD3 `cast` <Co:11>) 0# 10# 0# (ipv28_X2l `cast` <Co:10>) } in let! { UnsafeRefl v6_itGF ~ <- unsafeEqualityProof } in (# wild19_itGD, () #) `cast` <Co:15> } in ```
- Loading branch information
1 parent
b1e7350
commit f3fe815
Showing
2 changed files
with
44 additions
and
23 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
.../changelog.d/20241126_025636_effectfully_statically_unroll_itraverseCounter_.md
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
### Changed | ||
|
||
- In #5265 made `itraverseCounter_` faster increasing overall performance of the evaluator by 2.5%. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters