Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(codegen): router rework #2456

Draft
wants to merge 1 commit into
base: main
Choose a base branch
from
Draft

feat(codegen): router rework #2456

wants to merge 1 commit into from

Conversation

Gosunov
Copy link

@Gosunov Gosunov commented Mar 24, 2025

Closes #2434

Currently doesn't work because of bug in Asm.fif I guess...
Improves all gas benchmarks except wallet externals
This is passing all the tests if you replace function writeOpcodeChecker in writeRouter.ts, to this, but this ruins the perfomance :(

function writeOpcodeChecker(opcode: bigint, wCtx: WriterContext) {
    const opHex = opcode.toString(16).padStart(8, "0");
    wCtx.append(
        `(slice, int) ${opcodeCheckerFuncId(opcode)}(slice s) asm "<{ x{${opHex}} SDBEGINSQ }>c CALLREF";`
    );
}

@Gosunov Gosunov changed the title Router rework feat(codegen): router rework Mar 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Use SDBEGINSQ for contract router
1 participant