[Top][All Lists]

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

Re: [Bug-apl] Performance problem with simple program

From: Elias Mårtenson
Subject: Re: [Bug-apl] Performance problem with simple program
Date: Mon, 12 Oct 2015 12:07:31 +0800

I was just looking at the change, and it's the addition of the following code, run just after the check for ) or ] commands:

Token constant;
ExecuteList * fun = ExecuteList::fix(statement.no_pad(), constant, LOC);
   if (fun == 0)
         if (constant.get_tag() == TOK_APL_VALUE1)   return constant;

The call to ExecuteList::fix will return NULL if the object is parsed as any fixed object (i.e. not a result of a function call). This includes arrays and strings.


On 12 October 2015 at 11:37, <address@hidden> wrote:

Just wondering: Does this optimization in SVN 682 also apply to a homogeneous list of numbers? For example, if the input string is '1 2 3 3 45 3 2'. Is this what you mean when using the term 'single value' ?


reply via email to

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