Skip to main content

hopper_fast_entrypoint

Macro hopper_fast_entrypoint 

Source
macro_rules! hopper_fast_entrypoint {
    ( $process_instruction:expr ) => { ... };
    ( $process_instruction:expr, $maximum:expr ) => { ... };
}
Expand description

Declare the fast two-argument Hopper entrypoint.

Uses the SVM’s second register to receive instruction data directly, eliminating the full account-scanning pass. Saves ~30-40 CU per instruction. Requires SVM runtime ≥1.17.