[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [sc-dev] [supercollider/supercollider] bf8c91: class library: bitTest method minor speed improvem...
On 04.11.2013, at 11:54, Jonatan Liljedahl <lijon@xxxxxxxxxxxx> wrote:
> On Fri, Nov 1, 2013 at 4:18 PM, Fredrik Olofsson <f@xxxxxxxxxxxxxxxxxxx> wrote:
>> << is like an alias and by replacing them we get one method call less.
>> {100000.do{100<<4}}.bench
>> {100000.do{100.leftShift(4)}}.bench
>
> I see! Interesting that one message dispatch takes so much of the time.
unary dispatch is very efficient, it is the argument passing mechanism that takes time. This is because SC has a very rich but complex argument passing semantics (keyword arguments etc.).
_______________________________________________
sc-dev mailing list
info (subscription, etc.): http://www.beast.bham.ac.uk/research/sc_mailing_lists.shtml
archive: https://listarc.bham.ac.uk/marchives/sc-dev/
search: https://listarc.bham.ac.uk/lists/sc-dev/search/