[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Why are long functions slower?

From: Chet Ramey
Subject: Re: Why are long functions slower?
Date: Mon, 16 Oct 2017 07:59:16 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.12; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

On 10/15/17 6:08 PM, Eduardo A. Bustamante López wrote:

> BTW, Chet: Is there a reason for all the object copying / destruction, other 
> than setting the `flags' attribute in the
> COMMAND structure?

That's certainly the most common use. The command execution code assumes
it can modify the flags and other elements of the command structures
freely. It has to make sure that functions aren't modified in this way,
and copying the compound command in the function body is the easiest way
to do that.

``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/

reply via email to

[Prev in Thread] Current Thread [Next in Thread]