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

Vm values #1502

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Vm values #1502

wants to merge 4 commits into from

Conversation

Bike
Copy link
Member

@Bike Bike commented Sep 28, 2023

Some minor performance improvements to how the VM handles multiple values. Mostly it lets the compiler macro expanding apply into multiple-value-call be shared between bytecode and cclasp, which I think is nice.

This is hardly a high priority and it changes the VM definition, so this'll be a draft for a while

since compile_fdesignator skips compile_form, the code walker
wouldn't see e.g. the c-n-m in (funcall #'call-next-method ...).
From a few microbenchmarks this appears to improve some
performance marginally; but I'd like to include it for other
reasons:

1) This way (apply #'foo ...) shows up as a call to FOO in xref,
   and not as a call to APPLY.
2) The bytecode is a little nicer for BTB purposes since this
   matches how we treat APPLY in clasp-cleavir. It matches the
   philosophy of having M-V-C as _the_ variadic call mechanism.
This lets us move the APPLY compiler macro out of cclasp-specific-land.
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.

None yet

1 participant