-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(avm): gzip avm bytecode (#6475)
We can use this to reduce bytecode size (just as Brillig does) until we do bytecode validation. ``` AvmAcvmInteropTest::constant_field_avm: compressed 139 to 95 bytes AvmAcvmInteropTest::call_acvm_from_avm: compressed 6343 to 1486 bytes AvmAcvmInteropTest::avm_to_acvm_call: compressed 2145 to 552 bytes AvmAcvmInteropTest::new_nullifier: compressed 91 to 74 bytes AvmAcvmInteropTest::test_authwit_send_money: compressed 9090 to 1977 bytes AvmInitializerTest::read_storage_immutable: compressed 2078 to 560 bytes AvmInitializerTest::constructor: compressed 73769 to 6638 bytes AvmNestedCallsTest::set_storage_single: compressed 719 to 201 bytes AvmNestedCallsTest::nested_call_to_add_with_gas: compressed 48796 to 3976 bytes AvmNestedCallsTest::assert_same: compressed 1758 to 452 bytes AvmNestedCallsTest::new_nullifier: compressed 91 to 74 bytes AvmNestedCallsTest::nested_static_call_to_add: compressed 48643 to 3871 bytes AvmNestedCallsTest::nested_static_call_to_set_storage: compressed 47167 to 3573 bytes AvmNestedCallsTest::add_args_return: compressed 140 to 92 bytes AvmNestedCallsTest::nested_call_to_add: compressed 48258 to 3843 bytes AvmNestedCallsTest::create_same_nullifier_in_nested_call: compressed 46760 to 3527 bytes AvmNestedCallsTest::create_different_nullifier_in_nested_call: compressed 46809 to 3540 bytes AvmTest::get_chain_id: compressed 111 to 81 bytes AvmTest::to_radix_le: compressed 41037 to 2164 bytes AvmTest::read_storage_list: compressed 1186 to 345 bytes AvmTest::set_storage_map: compressed 5335 to 930 bytes AvmTest::new_nullifier: compressed 91 to 74 bytes AvmTest::set_opcode_u32: compressed 116 to 83 bytes AvmTest::assertion_failure: compressed 2107 to 495 bytes AvmTest::set_opcode_small_field: compressed 139 to 106 bytes AvmTest::read_storage_map: compressed 4987 to 890 bytes AvmTest::get_address: compressed 111 to 81 bytes AvmTest::pedersen_hash_with_index: compressed 199 to 114 bytes AvmTest::get_sender: compressed 111 to 81 bytes AvmTest::add_storage_map: compressed 10417 to 1742 bytes AvmTest::set_storage_list: compressed 864 to 219 bytes AvmTest::get_fee_per_da_gas: compressed 111 to 81 bytes AvmTest::u128_addition_overflow: compressed 46973 to 2808 bytes AvmTest::read_storage_single: compressed 728 to 227 bytes AvmTest::test_get_contract_instance_raw: compressed 1576 to 442 bytes AvmTest::test_get_contract_instance: compressed 44797 to 2953 bytes AvmTest::get_version: compressed 111 to 80 bytes AvmTest::check_selector: compressed 44567 to 3039 bytes AvmTest::get_transaction_fee: compressed 111 to 81 bytes AvmTest::add_u128: compressed 2390 to 593 bytes AvmTest::nullifier_collision: compressed 97 to 76 bytes AvmTest::pedersen_hash: compressed 199 to 113 bytes AvmTest::modulo2: compressed 177 to 104 bytes AvmTest::debug_logging: compressed 8916 to 1718 bytes AvmTest::assert_nullifier_exists: compressed 1964 to 502 bytes AvmTest::l1_to_l2_msg_exists: compressed 162 to 101 bytes AvmTest::note_hash_exists: compressed 162 to 102 bytes AvmTest::emit_unencrypted_log: compressed 47663 to 3297 bytes AvmTest::send_l2_to_l1_msg: compressed 105 to 79 bytes AvmTest::get_args_hash: compressed 176 to 105 bytes AvmTest::get_block_number: compressed 111 to 80 bytes AvmTest::set_read_storage_single: compressed 1372 to 350 bytes AvmTest::get_fee_per_l2_gas: compressed 111 to 81 bytes AvmTest::keccak_hash: compressed 559 to 220 bytes AvmTest::sha256_hash: compressed 537 to 207 bytes AvmTest::nullifier_exists: compressed 158 to 99 bytes AvmTest::new_note_hash: compressed 91 to 74 bytes AvmTest::set_opcode_u8: compressed 113 to 82 bytes AvmTest::add_args_return: compressed 140 to 92 bytes AvmTest::get_storage_address: compressed 111 to 81 bytes AvmTest::emit_nullifier_and_check: compressed 4100 to 682 bytes AvmTest::u128_from_integer_overflow: compressed 43568 to 2048 bytes AvmTest::poseidon2_hash: compressed 55082 to 4986 bytes AvmTest::set_opcode_u64: compressed 120 to 86 bytes AvmTest::get_timestamp: compressed 111 to 80 bytes AvmTest::set_storage_single: compressed 719 to 201 bytes AvmTest::set_opcode_big_field: compressed 263 to 137 bytes ``` --------- Co-authored-by: dbanks12 <[email protected]>
- Loading branch information
Showing
8 changed files
with
63 additions
and
20 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
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
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
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
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
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
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