Skip to content
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.

pre calculate cbor buffer length #353

Merged
merged 7 commits into from
Mar 8, 2023
Merged

Conversation

emmanuelm41
Copy link
Member

@emmanuelm41 emmanuelm41 commented Mar 8, 2023

closes #352

🔗 zboto Link

- FilecionCbor
- BytesCbor
- AccountCbor
- IntCbor
- DataCapCbor
@github-actions
Copy link

github-actions bot commented Mar 8, 2023

Gas results 🚀📝

Account actor

Function Gas
authenticate_message 7202619
universal_receiver_hook 4403376

Miner actor

Function Gas
change_owner_address 5192814
get_beneficiary 8780931
change_beneficiary 6315324
get_owner 6300315
get_available_balance 5054524
get_vesting_funds 5041162
repay_debt 4294839
confirm_change_worker_address 4291339
get_peer_id 5429826
get_multiaddresses 5947450
change_worker_address 5529841
is_controlling_address 5513745
get_sector_size 4704193
change_multiaddresses 5593200
change_peer_id 5387615
withdraw_balance 6812693

Datacap actor

Function Gas
name 5209505
symbol 4963000
total_supply 6696012
balance 5713698
allowance 6673510
transfer 13101729
transfer_from 17883400
burn 9791889
burn_from 13816764
allowance 9960013
increase_allowance 11036992
decrease_allowance 11025780
revoke_allowance 9261676

Market actor

Function Gas
publish_storage_deals 19153849
add_balance 5120229
withdraw_balance 7130907
get_balance 10398328
get_deal_data_commitment 9669735
get_deal_client 4975157
get_deal_provider 4971657
get_deal_label 10039682
get_deal_term 5680833
get_deal_total_price 7044187
get_deal_client_collateral 6863468
get_deal_provider_collateral 6860024
get_deal_verified 4892873
get_deal_activation 5485661

Power actor

Function Gas
miner_count 3964611
network_raw_power 4403213
miner_raw_power 5691887
miner_consensus_count 3978727

Precompiles actor

Function Gas
resolve_address 2473202
lookup_delegated_address (empty response) 2296265
lookup_delegated_address (address found) 2383269
resolve_eth_address 2406689

Send actor

Function Gas
send (actor id) 3087367
send (address) 3401691

Verifreg actor

Function Gas
add_verified_client 6028061
get_claims 8906246
extend_claim_term 9608479
remove_expired_allocations 7612829
remove_expired_claims 9608479

@github-actions
Copy link

github-actions bot commented Mar 8, 2023

Gas results 🚀📝

Account actor

Function Gas
authenticate_message 7202511
universal_receiver_hook 4403268

Miner actor

Function Gas
change_owner_address 5194574
get_beneficiary 8782691
change_beneficiary 6317084
get_owner 6302075
get_available_balance 5056284
get_vesting_funds 5042922
repay_debt 4296599
confirm_change_worker_address 4293099
get_peer_id 5431586
get_multiaddresses 5949210
change_worker_address 5531601
is_controlling_address 5515505
get_sector_size 4705953
change_multiaddresses 5594960
change_peer_id 5389375
withdraw_balance 6814453

Datacap actor

Function Gas
name 5209793
symbol 4963288
total_supply 6696300
balance 5713986
allowance 6673798
transfer 13102017
transfer_from 17883688
burn 9792177
burn_from 13817052
allowance 9960301
increase_allowance 11037280
decrease_allowance 11026068
revoke_allowance 9261964

Market actor

Function Gas
publish_storage_deals 21501515
add_balance 5210926
withdraw_balance 7524385
get_balance 10489026
get_deal_data_commitment 9859124
get_deal_client 5164545
get_deal_provider 5161045
get_deal_label 10229071
get_deal_term 5870222
get_deal_total_price 7233575
get_deal_client_collateral 7052857
get_deal_provider_collateral 7049413
get_deal_verified 5082262
get_deal_activation 5675050

Power actor

Function Gas
miner_count 3966611
network_raw_power 4405213
miner_raw_power 5693887
miner_consensus_count 3980727

Precompiles actor

Function Gas
resolve_address 2473202
lookup_delegated_address (empty response) 2296265
lookup_delegated_address (address found) 2383269
resolve_eth_address 2406689

Send actor

Function Gas
send (actor id) 3088807
send (address) 3403131

Verifreg actor

Function Gas
add_verified_client 6028301
get_claims 8906486
extend_claim_term 9608719
remove_expired_allocations 7613069
remove_expired_claims 9608719

@github-actions
Copy link

github-actions bot commented Mar 8, 2023

Gas results 🚀📝

Account actor

Function Gas
authenticate_message 7207523
universal_receiver_hook 4669009

Miner actor

Function Gas
change_owner_address 5239225
get_beneficiary 8827341
change_beneficiary 6728023
get_owner 6346726
get_available_balance 5100935
get_vesting_funds 5087573
repay_debt 4341249
confirm_change_worker_address 4337749
get_peer_id 5476236
get_multiaddresses 5993861
change_worker_address 5855005
is_controlling_address 5560155
get_sector_size 4750604
change_multiaddresses 5971363
change_peer_id 5434025
withdraw_balance 6859103

Datacap actor

Function Gas
name 5209261
symbol 4962756
total_supply 6695768
balance 5713454
allowance 6673266
transfer 13101485
transfer_from 17883156
burn 9791645
burn_from 13816520
allowance 9959769
increase_allowance 11036748
decrease_allowance 11025536
revoke_allowance 9261432

Market actor

Function Gas
publish_storage_deals 21502395
add_balance 5211806
withdraw_balance 7525265
get_balance 10489906
get_deal_data_commitment 9860004
get_deal_client 5165425
get_deal_provider 5161925
get_deal_label 10229951
get_deal_term 5871102
get_deal_total_price 7234455
get_deal_client_collateral 7053737
get_deal_provider_collateral 7050293
get_deal_verified 5083142
get_deal_activation 5675930

Power actor

Function Gas
miner_count 3990706
network_raw_power 4429309
miner_raw_power 5717982
miner_consensus_count 4004822

Precompiles actor

Function Gas
resolve_address 2473202
lookup_delegated_address (empty response) 2296265
lookup_delegated_address (address found) 2383269
resolve_eth_address 2406689

Send actor

Function Gas
send (actor id) 3089207
send (address) 3403531

Verifreg actor

Function Gas
add_verified_client 6417441
get_claims 9427469
extend_claim_term 10129701
remove_expired_allocations 7934629
remove_expired_claims 10129701

@emmanuelm41 emmanuelm41 merged commit 148f326 into master Mar 8, 2023
@emmanuelm41 emmanuelm41 deleted the feat/precalculatae-buffers branch March 8, 2023 19:36
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Calculate cbor buffer length instead of using fixed one
1 participant