Skip to content

nock: earlier shortcircuit for nonequality of a direct atom with a noun#1015

Open
dozreg-toplud wants to merge 2 commits into
developfrom
dozreg/sing-more-inline
Open

nock: earlier shortcircuit for nonequality of a direct atom with a noun#1015
dozreg-toplud wants to merge 2 commits into
developfrom
dozreg/sing-more-inline

Conversation

@dozreg-toplud
Copy link
Copy Markdown
Contributor

When testing SKA transpiler output efficiency I noticed that some u3r_sing overhead could be removed by shortcurcuiting earlier if at least one of the arguments is a direct atom. This made hoon.hoon compilation 3-5% faster.

@dozreg-toplud dozreg-toplud requested a review from pkova May 17, 2026 10:54
@dozreg-toplud dozreg-toplud requested a review from a team as a code owner May 17, 2026 10:54
@dozreg-toplud
Copy link
Copy Markdown
Contributor Author

Having to enter u3a_gain/lose to check if a noun is direct was causing nontrivial (>10%) overhead in SKA bytecode interpreter, adding a guard makes hoon.hoon compilation a bit faster even in the current bytecode interpeter.

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.

1 participant