Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit b89f686

Browse files
committed
Update CU values
1 parent 17924d2 commit b89f686

File tree

1 file changed

+20
-23
lines changed

1 file changed

+20
-23
lines changed

README.md

Lines changed: 20 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,6 @@
1212
<a href="https://github.com/febo/p-token/actions/workflows/main.yml"><img src="https://img.shields.io/github/actions/workflow/status/febo/p-token/main.yml?logo=GitHub" /></a>
1313
</p>
1414

15-
> [!WARNING]
16-
> The program is not yet fully-optimized. There are still opportunities to improve the compute units consumption.
17-
1815
## Overview
1916

2017
This repository contains a **proof-of-concept** of a reimplementation of the SPL Token program, one of the most used programs on Solana, using [`pinocchio`](https://github.com/febo/pinocchio). The purpose is to have an implementation that optimizes the compute units, while being fully compatible with the original implementation &mdash; i.e., support the exact same instruction and account layouts as SPL Token, byte for byte.
@@ -23,27 +20,27 @@ This repository contains a **proof-of-concept** of a reimplementation of the SPL
2320

2421
| Instruction | Completed | CU (`p-token`) | CU (`spl-token`) |
2522
|----------------------------|-----------|----------------|------------------|
26-
| `InitializeMint` || 361 | 2967 |
27-
| `InitializeAccount` || 430 | 4527 |
28-
| `InitializeMultisig` || 454 | 2973 |
29-
| `Transfer` || 159 | 4645 |
30-
| `Approve` || 144 | 2904 |
31-
| `Revoke` || 110 | 2677 |
32-
| `SetAuthority` || 153 | 3167 |
33-
| `MintTo` || 160 | 4538 |
34-
| `Burn` || 180 | 4753 |
35-
| `CloseAccount` || 158 | 2916 |
36-
| `FreezeAccount` || 149 | 4265 |
37-
| `ThawAccount` || 150 | 4267 |
38-
| `TransferChecked` || 224 | 6201 |
39-
| `ApproveChecked` || 185 | 4459 |
40-
| `MintToChecked` || 191 | 4546 |
41-
| `BurnChecked` || 182 | 4755 |
42-
| `InitializeAccount2` || 414 | 4388 |
23+
| `InitializeMint` || 343 | 2967 |
24+
| `InitializeAccount` || 416 | 4527 |
25+
| `InitializeMultisig` || 499 | 2973 |
26+
| `Transfer` || 140 | 4645 |
27+
| `Approve` || 133 | 2904 |
28+
| `Revoke` || 106 | 2677 |
29+
| `SetAuthority` || 142 | 3167 |
30+
| `MintTo` || 143 | 4538 |
31+
| `Burn` || 175 | 4753 |
32+
| `CloseAccount` || 147 | 2916 |
33+
| `FreezeAccount` || 141 | 4265 |
34+
| `ThawAccount` || 142 | 4267 |
35+
| `TransferChecked` || 211 | 6201 |
36+
| `ApproveChecked` || 169 | 4459 |
37+
| `MintToChecked` || 178 | 4546 |
38+
| `BurnChecked` || 181 | 4755 |
39+
| `InitializeAccount2` || 399 | 4388 |
4340
| `SyncNative` || | |
44-
| `InitializeAccount3` || 518 | 4240 |
45-
| `InitializeMultisig2` || 584 | 2826 |
46-
| `InitializeMint2` || 495 | 2827 |
41+
| `InitializeAccount3` || 508 | 4240 |
42+
| `InitializeMultisig2` || 579 | 2826 |
43+
| `InitializeMint2` || 477 | 2827 |
4744
| `GetAccountDataSize` || | |
4845
| `InitializeImmutableOwner` || | |
4946
| `AmountToUiAmount` || | |

0 commit comments

Comments
 (0)