Skip to content

Commit 49699ce

Browse files
feat: Remove Legacy IDL Instructions & Integrate Program Metadata (solana-foundation#3798)
* fix(avm): expose anchor on PATH via $CARGO_HOME/bin symlink * refactor: Remove legacy IDL instruction support and integrate Program Metadata Eliminated IDL instruction handling from the core program logic, including the removal of related structures and functions. Updated the CLI to utilize the new Program Metadata for IDL management. Adjusted error handling to reflect the removal of IDL instructions. Enhanced the program generation process to support the new IDL build feature without injecting IDL instructions. Cleaned up unused code and comments related to legacy IDL functionality. * chore: update bench tests * remove wrong branches Co-authored-by: Jamie Hill-Daniel <134328753+jamie-osec@users.noreply.github.com> * feat: Refactor RPC URL handling in IDL commands * chore: benchmarks * fix: revert merged changes * chore: revert benches * fix: bench file * chore: new bench * chore: revert wrong benchmarks --------- Co-authored-by: Jamie Hill-Daniel <134328753+jamie-osec@users.noreply.github.com>
1 parent 1ed7279 commit 49699ce

File tree

11 files changed

+578
-1223
lines changed

11 files changed

+578
-1223
lines changed

bench/BINARY_SIZE.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@ The programs and their tests are located in [/tests/bench](https://github.com/co
1616

1717
Solana version: 2.3.0
1818

19-
| Program | Binary Size | - |
20-
| ------- | ----------- | ----------------------- |
21-
| bench | 1,024,096 | 🟢 **-102,744 (9.12%)** |
19+
| Program | Binary Size | - |
20+
| ------- | ----------- | ------------------------ |
21+
| bench | 966,096 | 🟢 **-160,744 (14.27%)** |
2222

2323
### Notable changes
2424

@@ -28,8 +28,8 @@ Solana version: 2.3.0
2828

2929
Solana version: 2.3.0
3030

31-
| Program | Binary Size | - |
32-
| ------- | ----------- | ------------------------ |
31+
| Program | Binary Size | - |
32+
| ------- | ----------- | ----------------------- |
3333
| bench | 1,126,840 | 🔴 **+181,272 (19.17%)** |
3434

3535
### Notable changes
@@ -42,8 +42,8 @@ Solana version: 2.3.0
4242

4343
Solana version: 2.1.0
4444

45-
| Program | Binary Size | - |
46-
| ------- | ----------- | ---------------------- |
45+
| Program | Binary Size | - |
46+
| ------- | ----------- | --------------------- |
4747
| bench | 945,568 | 🟢 **-96,360 (9.25%)** |
4848

4949
### Notable changes
@@ -66,8 +66,8 @@ Solana version: 2.1.0
6666

6767
Solana version: 2.1.0
6868

69-
| Program | Binary Size | - |
70-
| ------- | ----------- | ------------------------ |
69+
| Program | Binary Size | - |
70+
| ------- | ----------- | ----------------------- |
7171
| bench | 1,041,928 | 🔴 **+250,920 (31.72%)** |
7272

7373
### Notable changes
@@ -93,8 +93,8 @@ Solana version: 1.18.17
9393

9494
Solana version: 1.18.8
9595

96-
| Program | Binary Size | - |
97-
| ------- | ----------- | ---------------------- |
96+
| Program | Binary Size | - |
97+
| ------- | ----------- | --------------------- |
9898
| bench | 791,008 | 🔴 **+47,952 (6.45%)** |
9999

100100
### Notable changes
@@ -107,8 +107,8 @@ Solana version: 1.18.8
107107

108108
Solana version: 1.17.0
109109

110-
| Program | Binary Size | +/- |
111-
| ------- | ----------- | ------------------------ |
110+
| Program | Binary Size | +/- |
111+
| ------- | ----------- | ----------------------- |
112112
| bench | 743,056 | 🟢 **-417,904 (36.00%)** |
113113

114114
### Notable changes
@@ -123,8 +123,8 @@ Solana version: 1.17.0
123123

124124
Solana version: 1.16.0
125125

126-
| Program | Binary Size | +/- |
127-
| ------- | ----------- | ---------------------- |
126+
| Program | Binary Size | +/- |
127+
| ------- | ----------- | --------------------- |
128128
| bench | 1,160,960 | 🔴 **+23,272 (2.05%)** |
129129

130130
### Notable changes
@@ -141,4 +141,4 @@ Solana version: 1.14.16
141141
| ------- | ----------- | --- |
142142
| bench | 1,137,688 | N/A |
143143

144-
---
144+
---

bench/COMPUTE_UNITS.md

Lines changed: 193 additions & 193 deletions
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)