Re: use-livecode Digest, Vol 250, Issue 1

2024-07-29 Thread Bob Sneidar via use-livecode
I don’t see how that would be faster. You are adding string processing overhead, not reducing it. Arrays work well because you already have an index of sorts (the keys of the array). On Jul 27, 2024, at 5:01 AM, David V Glasgow via use-livecode wrote: I have long intended to see if I can sp

Re: use-livecode Digest, Vol 250, Issue 1

2024-07-29 Thread David V Glasgow via use-livecode
Many thanks, I will definitely include this in my testing. Cheers David G > On 28 Jul 2024, at 8:10 pm, Niggemann, Bernd via use-livecode > wrote: > > Hi David, > > Here is a script that lets you compare filter operations on lists or arrays. > With and without unicode. > > put it into a bu

Re: use-livecode Digest, Vol 250, Issue 1

2024-07-28 Thread Niggemann, Bernd via use-livecode
Hi David, Here is a script that lets you compare filter operations on lists or arrays. With and without unicode. put it into a button and make a field "fRes" and hold down the option/alt key to test unicode, else it is ASCII. - on mouseUp

Re: use-livecode Digest, Vol 250, Issue 1

2024-07-27 Thread David V Glasgow via use-livecode
> On 3 Jul 2024, at 2:05 am, Neville Smythe via use-livecode > wrote: > > There is however > > filter elements of with into tLines; put line 1 of the keys of > tLines into tFoundLine > > And that is still very fast on unicode, even though it will find all the > lines matching str, not just

Re: use-livecode Digest, Vol 250, Issue 1

2024-07-02 Thread Neville Smythe via use-livecode
Thank Dick I will try your idea - it may need a small mod, see below. I will probably post some timings later if people are still interested in this thread. Mark’s method of converting to an array of lines to gain random access to the lines has given me at least a 50-fold increase in speed in m