File tree Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Expand file tree Collapse file tree 3 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -162,10 +162,11 @@ lets the VM assume it worked.
162162| Language | CU Usage |
163163| --- | --- |
164164| Rust | 464 |
165- | Zig | 469 |
165+ | Zig | 186 |
166166| C | 103 |
167167| Assembly | 23 |
168168
169169This one starts to get interesting since it requires parsing the instruction
170170input. Since the assembly version knows exactly where to find everything, it can
171171be hyper-optimized. The C version is also very performant.
172+ Zig's version should perform the same as C, but there are some inefficiencies that are currently fixing.
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const base58 = @import("base58");
44
55pub fn build (b : * std.Build ) ! void {
66 const target = b .resolveTargetQuery (solana .sbf_target );
7- const optimize = .ReleaseSmall ;
7+ const optimize = .ReleaseFast ;
88 const program = b .addSharedLibrary (.{
99 .name = "solana_program_rosetta_helloworld" ,
1010 .root_source_file = b .path ("main.zig" ),
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ const base58 = @import("base58");
44
55pub fn build (b : * std.Build ) ! void {
66 const target = b .resolveTargetQuery (solana .sbf_target );
7- const optimize = .ReleaseSmall ;
7+ const optimize = .ReleaseFast ;
88 const program = b .addSharedLibrary (.{
99 .name = "solana_program_rosetta_transfer_lamports" ,
1010 .root_source_file = b .path ("main.zig" ),
You can’t perform that action at this time.
0 commit comments