I guess there is no obvious looping in cdcallback.  However
cdcallback will executed many times depending on the size of the
testing data. To get the minimum possible time for parsing, one
may set

cdcallback=: 0:

Сб, 10 авг 2013, Brian Schott писал(а):
> Dan,
> 
> Bill is usually very clever at diagnosing problems, and  I am not, but this
> is what I see.
> 
> When I look at  the following code I see internal if. .end and wonder if
> that is time consuming because it is like a do. while in looping code. If a
> lot of time is spent in that phrase, perhaps, you  could investigate
> speeding it up.
> 
> cdcallback=: 3 : 0
>   if. 3=#y do.
>     if. PARLEN(> *. 0<])2{y do.
>       characters^:(*@#) trim^:IGNOREWS memchr/}.y return.end.
>     (2{y) startElement memstr 1{y
>   else.
>     endElement memstr 1{y
>   end.
> )
> 
> 
> 
> -- 
> (B=) <-----my sig
> Brian Schott
> ----------------------------------------------------------------------
> For information about J forums see http://www.jsoftware.com/forums.htm

-- 
regards,
====================================================
GPG key 1024D/4434BAB3 2008-08-24
gpg --keyserver subkeys.pgp.net --recv-keys 4434BAB3
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to