Skip to content

Commit

Permalink
Merge pull request #1329 from radixdlt/architecture/heap-mount
Browse files Browse the repository at this point in the history
Feature: Pinned Nodes + Transient Substates
  • Loading branch information
talekhinezh authored Aug 18, 2023
2 parents 9d2d39a + 6403c5f commit 280b6bf
Show file tree
Hide file tree
Showing 59 changed files with 1,060 additions and 356 deletions.
Binary file modified assets/faucet.rpd
Binary file not shown.
Binary file modified assets/faucet.wasm
Binary file not shown.
Binary file modified assets/flash_loan.rpd
Binary file not shown.
Binary file modified assets/flash_loan.wasm
Binary file not shown.
Binary file modified assets/genesis_helper.rpd
Binary file not shown.
Binary file modified assets/genesis_helper.wasm
Binary file not shown.
Binary file modified assets/metadata.rpd
Binary file not shown.
Binary file modified assets/metadata.wasm
Binary file not shown.
Binary file modified assets/radiswap.rpd
Binary file not shown.
Binary file modified assets/radiswap.wasm
Binary file not shown.
1 change: 1 addition & 0 deletions radix-engine-interface/src/blueprints/package/substates.rs
Original file line number Diff line number Diff line change
Expand Up @@ -362,6 +362,7 @@ impl IndexedStateSchema {
FieldSchema {
field: pointer,
condition: field_schema.condition,
transience: field_schema.transience,
}
})
.collect();
Expand Down
40 changes: 21 additions & 19 deletions radix-engine-tests/assets/cost_flash_loan.csv
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
Total Cost (XRD) , 0.688264467073562985, 100.0%
- Execution Cost (XRD) , 0.5643818, 82.0%
- Finalization Cost (XRD) , 0.03725725, 5.4%
Total Cost (XRD) , 0.677893317073562985, 100.0%
- Execution Cost (XRD) , 0.5590108, 82.5%
- Finalization Cost (XRD) , 0.0322571, 4.8%
- Tipping Cost (XRD) , 0, 0.0%
- Storage Cost (XRD) , 0.086625417073562985, 12.6%
- Storage Cost (XRD) , 0.086625417073562985, 12.8%
- Tipping Cost (XRD) , 0, 0.0%
- Royalty Cost (XRD) , 0, 0.0%
Execution Cost Breakdown , 11287636, 100.0%
Execution Cost Breakdown , 11180216, 100.0%
- AllocateNodeId , 5512, 0.0%
- BeforeInvoke , 9344, 0.1%
- CloseSubstate , 93765, 0.8%
Expand All @@ -14,19 +14,21 @@ Execution Cost Breakdown ,
- EmitEvent , 5176, 0.0%
- GenerateRuid , 500, 0.0%
- LockFee , 500, 0.0%
- MarkSubstateAsTransient , 500, 0.0%
- OpenSubstate::GlobalAccount , 494974, 4.4%
- OpenSubstate::GlobalFungibleResourceManager , 257105, 2.3%
- OpenSubstate::GlobalGenericComponent , 46736, 0.4%
- OpenSubstate::GlobalNonFungibleResourceManager , 668802, 5.9%
- OpenSubstate::GlobalPackage , 4056928, 35.9%
- OpenSubstate::InternalFungibleVault , 364875, 3.2%
- OpenSubstate::InternalGenericComponent , 185848, 1.6%
- PrepareWasmCode , 1624664, 14.4%
- OpenSubstate::GlobalNonFungibleResourceManager , 668802, 6.0%
- OpenSubstate::GlobalPackage , 4044492, 36.2%
- OpenSubstate::InternalFungibleVault , 284873, 2.5%
- OpenSubstate::InternalGenericComponent , 185848, 1.7%
- PinNode , 5300, 0.0%
- PrepareWasmCode , 1612400, 14.4%
- QueryActor , 9500, 0.1%
- QueryAuthZone , 2000, 0.0%
- ReadSubstate , 1977420, 17.5%
- ReadSubstate , 1964906, 17.6%
- RunNativeCode::AuthZone_pop , 37132, 0.3%
- RunNativeCode::AuthZone_push , 50694, 0.4%
- RunNativeCode::AuthZone_push , 50694, 0.5%
- RunNativeCode::Worktop_drain , 13505, 0.1%
- RunNativeCode::Worktop_drop , 15385, 0.1%
- RunNativeCode::Worktop_put , 54786, 0.5%
Expand All @@ -52,14 +54,14 @@ Execution Cost Breakdown ,
- RunNativeCode::try_deposit_batch_or_abort , 76963, 0.7%
- RunNativeCode::unlock_amount_FungibleVault , 51728, 0.5%
- RunNativeCode::withdraw , 30320, 0.3%
- RunWasmCode::BasicFlashLoan_repay_loan , 66272, 0.6%
- RunWasmCode::BasicFlashLoan_take_loan , 85586, 0.8%
- RunWasmCode::BasicFlashLoan_repay_loan , 68603, 0.6%
- RunWasmCode::BasicFlashLoan_take_loan , 87251, 0.8%
- ValidateTxPayload , 18800, 0.2%
- VerifyTxSignatures , 7000, 0.1%
- WriteSubstate , 20438, 0.2%
Finalization Cost Breakdown , 745145, 100.0%
- CommitEvents , 45083, 6.1%
Finalization Cost Breakdown , 645142, 100.0%
- CommitEvents , 45083, 7.0%
- CommitLogs , 0, 0.0%
- CommitStateUpdates::GlobalGenericComponent , 100025, 13.4%
- CommitStateUpdates::GlobalNonFungibleResourceManager , 200010, 26.8%
- CommitStateUpdates::InternalFungibleVault , 400027, 53.7%
- CommitStateUpdates::GlobalGenericComponent , 100025, 15.5%
- CommitStateUpdates::GlobalNonFungibleResourceManager , 200010, 31.0%
- CommitStateUpdates::InternalFungibleVault , 300024, 46.5%
Original file line number Diff line number Diff line change
@@ -1,31 +1,33 @@
Total Cost (XRD) , 341.05065859724730748, 100.0%
- Execution Cost (XRD) , 2.6249455, 0.8%
- Finalization Cost (XRD) , 2.4843984, 0.7%
Total Cost (XRD) , 341.038396844154859962, 100.0%
- Execution Cost (XRD) , 2.6249954, 0.8%
- Finalization Cost (XRD) , 2.47939825, 0.7%
- Tipping Cost (XRD) , 0, 0.0%
- Storage Cost (XRD) , 335.94131469724730748, 98.5%
- Storage Cost (XRD) , 335.934003194154859962, 98.5%
- Tipping Cost (XRD) , 0, 0.0%
- Royalty Cost (XRD) , 0, 0.0%
Execution Cost Breakdown , 52498910, 100.0%
Execution Cost Breakdown , 52499908, 100.0%
- AllocateNodeId , 2288, 0.0%
- BeforeInvoke , 2094258, 4.0%
- CloseSubstate , 51555, 0.1%
- CreateNode , 2107167, 4.0%
- DropNode , 29374, 0.1%
- EmitEvent , 15370, 0.0%
- LockFee , 500, 0.0%
- MarkSubstateAsTransient , 100, 0.0%
- MoveModule , 20916, 0.0%
- OpenSubstate::GlobalAccount , 406436, 0.8%
- OpenSubstate::GlobalFungibleResourceManager , 121580, 0.2%
- OpenSubstate::GlobalGenericComponent , 43212, 0.1%
- OpenSubstate::GlobalNonFungibleResourceManager , 12273, 0.0%
- OpenSubstate::GlobalPackage , 3274487, 6.2%
- OpenSubstate::GlobalPackage , 3274080, 6.2%
- OpenSubstate::InternalFungibleVault , 85541, 0.2%
- OpenSubstate::InternalGenericComponent , 51181, 0.1%
- OpenSubstate::InternalKeyValueStore , 40474, 0.1%
- OpenSubstate::InternalNonFungibleVault , 118415, 0.2%
- PrepareWasmCode , 651706, 1.2%
- PinNode , 1900, 0.0%
- PrepareWasmCode , 651168, 1.2%
- QueryActor , 2000, 0.0%
- ReadSubstate , 924826, 1.8%
- ReadSubstate , 924436, 1.8%
- RunNativeCode::Worktop_drain , 13505, 0.0%
- RunNativeCode::Worktop_drop , 15385, 0.0%
- RunNativeCode::Worktop_put , 18262, 0.0%
Expand All @@ -38,16 +40,16 @@ Execution Cost Breakdown ,
- RunNativeCode::lock_fee , 48766, 0.1%
- RunNativeCode::put_NonFungibleVault , 29816, 0.1%
- RunNativeCode::try_deposit_batch_or_abort , 76963, 0.1%
- RunWasmCode::Faucet_lock_fee , 16988, 0.0%
- RunWasmCode::Faucet_lock_fee , 17321, 0.0%
- SetSubstate , 56628, 0.1%
- ValidateTxPayload , 41840560, 79.7%
- VerifyTxSignatures , 0, 0.0%
- WriteSubstate , 5496, 0.0%
Finalization Cost Breakdown , 49687968, 100.0%
Finalization Cost Breakdown , 49587965, 100.0%
- CommitEvents , 26608, 0.1%
- CommitLogs , 0, 0.0%
- CommitStateUpdates::GlobalAccount , 100010, 0.2%
- CommitStateUpdates::GlobalGenericComponent , 100018, 0.2%
- CommitStateUpdates::GlobalNonFungibleResourceManager , 25561280, 51.4%
- CommitStateUpdates::GlobalNonFungibleResourceManager , 25561280, 51.5%
- CommitStateUpdates::InternalFungibleVault , 100008, 0.2%
- CommitStateUpdates::InternalNonFungibleVault , 23800044, 47.9%
- CommitStateUpdates::InternalNonFungibleVault , 23700041, 47.8%
Loading

0 comments on commit 280b6bf

Please sign in to comment.