[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: towards a more unified procedure application mechanism
From: |
Ludovic Courtès |
Subject: |
Re: towards a more unified procedure application mechanism |
Date: |
Thu, 03 Sep 2009 18:10:14 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) |
Hi!
Andy Wingo <address@hidden> writes:
>> These specialized subr types allow for faster dispatch, as opposed to
>> the argument count checks (and argument copies) that are done in
>> `scm_i_gsubr_apply ()'. Thus, I think replacing all of them with gsubrs
>> may have a negative impact performance-wise.
>
> That might be true with the current implementation, but it need not be
> true with dispatch in the VM. The specialized subr types don't actually
> gain us anything; you can do a gsubr dispatch just as fast, comparing
> the tc16 instead of the tc7.
Hmm yes, you're right. In the end you still have to compare something
and somehow handle optional and rest arguments. Maybe you could try to
run `subr.bm' in your branch to see how it goes.
Thanks,
Ludo'.