Re: Interesting Experiment With String/Sequence Slicing

new topic     » goto parent     » topic index » view thread      » older message » newer message

hi Mike

> (insertIndex() & removeIndex()). I found an up-to 4-fold or more 
> increase in speed. I don't have time to explain the method right now but 

i have looked at insertIndex() & removeIndex() but 
am still not sure how it works in my situation.  i am working
with just a simple sequence of chars (string) but i believe
 insertIndex() & removeIndex() applies more to lists/sequences
of objects.  but insertIndex() & removeIndex() seems to be very
interesting, maybe i missed something subtle there.

regards,
sam lie
Down Under, Australia




----- Original Message ----- 
From: "Mike" <vulcan at win.co.nz>
To: "EUforum" <EUforum at topica.com>
Sent: Tuesday, August 21, 2001 1:23 PM
Subject: RE: Interesting Experiment With String/Sequence Slicing


> 
> Hi Sam, I have found a way of increasing the poor performance of slicing 
> really large sequences and have used this in my windows editor. This 
> method is also in the file tk_misc.e included with win32lib.ew 
> (insertIndex() & removeIndex()). I found an up-to 4-fold or more 
> increase in speed. I don't have time to explain the method right now but 
> if you want more help AFTER studying these routines then you could write 
> to me direct. vulcan at win.co.nz
> 
> 
> slie at theage.fairfax.com.au wrote:
> > hi Robert,
> > 
> > sorry to keep bring this issue up as the program i am writting
> > seems to be severely affected by the slowness in the string slicing
> > function in euphoria.  the program i'm working on is basically doing a 
> > lot
> > of string
> > string and replace (for large text files) which relies much on the 
> > string
> > slicing.
> > i am just curious as to ways the program can be optimised and i have
> > run out of avenues except looking how i can get around the slicing 
> > issue.
> 
> 
> 
> 
> 
> 



*********************************************************************************
This email and any files transmitted with it may be legally privileged 
and confidential.  If you are not the intended recipient of this email,
you must not disclose or use the information contained in it.  If you 
have received this email in error, please notify us by return email and 
permanently delete the document.
*********************************************************************************

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu