Skip to content

Commit bad0822

Browse files
perf: add inline for invoke_signed in memo and ata programs
1 parent bd28a5f commit bad0822

File tree

7 files changed

+8
-4
lines changed

7 files changed

+8
-4
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

programs/associated-token-account/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "pinocchio-associated-token-account"
33
description = "Pinocchio helpers to invoke Associated Token Account program instructions"
4-
version = "0.1.1"
4+
version = "0.1.2"
55
edition = { workspace = true }
66
license = { workspace = true }
77
readme = "./README.md"

programs/associated-token-account/src/instructions/create.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ impl Create<'_> {
3636
self.invoke_signed(&[])
3737
}
3838

39+
#[inline(always)]
3940
pub fn invoke_signed(&self, signers: &[Signer]) -> ProgramResult {
4041
// account metadata
4142
let account_metas: [AccountMeta; 6] = [

programs/associated-token-account/src/instructions/create_idempotent.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ impl CreateIdempotent<'_> {
3737
self.invoke_signed(&[])
3838
}
3939

40+
#[inline(always)]
4041
pub fn invoke_signed(&self, signers: &[Signer]) -> ProgramResult {
4142
// account metadata
4243
let account_metas: [AccountMeta; 6] = [

programs/associated-token-account/src/instructions/recover_nested.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ impl RecoverNested<'_> {
4747
self.invoke_signed(&[])
4848
}
4949

50+
#[inline(always)]
5051
pub fn invoke_signed(&self, signers: &[Signer]) -> ProgramResult {
5152
// account metadata
5253
let account_metas: [AccountMeta; 7] = [

programs/memo/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
[package]
22
name = "pinocchio-memo"
33
description = "Pinocchio helpers to invoke Memo program instructions"
4-
version = "0.1.0"
4+
version = "0.1.1"
55
edition = { workspace = true }
66
license = { workspace = true }
77
readme = "./README.md"

programs/memo/src/instructions/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ impl Memo<'_, '_, '_> {
2525
self.invoke_signed(&[])
2626
}
2727

28+
#[inline(always)]
2829
pub fn invoke_signed(&self, signers_seeds: &[Signer]) -> ProgramResult {
2930
const UNINIT_META: MaybeUninit<AccountMeta> = MaybeUninit::<AccountMeta>::uninit();
3031

0 commit comments

Comments
 (0)