ERRATA the first example should have been:
   ts'syme''now is the time'''
0.890045 1.87701e8

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paul Gauthier
Sent: Friday, September 28, 2007 5:42 PM
To: 'Programming forum'
Subject: RE: [Jprogramming] Symbol exist ?

And finally for the timing with my set of symbols (tacit form first):
   ts'SymbolExist''now is the time'''
0.890045 1.87701e8
   ts'SymbolExist''now is the time'''
0.192023 1408

The explicit form does:
   ts'SymbolExist''now is the time'''
0.765834 1.96092e8

Since my application does have a "looking at existing symbols only and don't
add them yet" phase then it's worthwhile to use the tacit form.
 -----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Dan Bron
Sent: Friday, September 28, 2007 5:27 PM
To: 'Programming forum'
Subject: RE: [Jprogramming] Symbol exist ?

Paul wrote:
> I found one way of improving the speed, by going from 
> explicit to tacit: 

Paul, your current tacit formulation is buggy:

           SymbolExist 'paul'
        0
           s:<'paul'
        `paul
           SymbolExist 'paul'
        0
           
(for the reasons why, see an earlier message I sent you:
http://www.jsoftware.com/pipermail/general/2007-May/029982.html  )   

I posted a tacit SymbolExists verb earlier today:
http://www.jsoftware.com/pipermail/programming/2007-September/008221.html  .


Since only you have your symbol data, you might want to compare it to your
explicit version.  Of particular note:  it uses  e.
instead of  i.  which is probably faster, for this purpose  (i.e.  e. -:
#@:] ~: i.~  but  e.  is more optimized than the latter
verb).

-Dan

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm


----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to