Replacetext taking forever under 8.1.7

Brian Milby brian at milby7.com
Mon Nov 27 13:29:53 EST 2017


Just tried this snip:


*-- revidelibrary.8.livecodescript full path in the text field**put* url (
"file:" & the text of field "fileName") into holdIt1
*put* the milliseconds into tStart
*put* replacetext(holdIt1,"[ ]{2,10}",empty) into holdIt
*put* the milliseconds into tEnd
*put* cr & tEnd - tStart after msg

7.1.4 (Indy): 7 ms
8.1.7rc3 (Indy): ~2530 ms
9.0rc10 (Business): ~2480 ms
Mac OS X 10.12.6 (Sierra) / 4GHz Core i7 iMac w/ 16GB RAM

Not sure if this is exactly the same, but it does demonstrate that
replacetext takes quite a bit longer in 8/9 compared to 7.  The loaded file
is a bit over 400k and 12k lines.

Don't want to end up with 2 bug reports, so I'll hold off for Bruce but I
can upload the stack that I created if needed.

Thanks,
Brian


On Mon, Nov 27, 2017 at 11:11 AM, panagiotis merakos via use-livecode <
use-livecode at lists.runrev.com> wrote:

> Hi Bruce,
>
> If the same code snippet takes 20 mins in 8.1.7 and 1 second in 7.1.4, this
> is definitely a bug. Please do file a report in quality.livecode.com, and
> make sure you attach a simple sample stack that demonstrates the problem
> for you.
> Regression bugs have higher priority, so I would expect this issue to be
> addressed soon, once it is confirmed.
>
> Best,
> Panos
> --
>
> On Thu, Nov 23, 2017 at 8:27 PM, Bruce Pokras via use-livecode <
> use-livecode at lists.runrev.com> wrote:
>
> > I am trying to port a stack that runs fine under Livecode 7.1.4 to
> > Livecode 8.1.7 in order to take advantage of 8.1.7’s 64-bit standalone
> app
> > capability for Mac OS X “High Sierra". That is when I found that under
> > either Yosemite or High Sierra a “replacetext" action takes over 20
> minutes
> > under 8.1.7 while under 7.1.4 it takes less than one second! The
> > replacetext is to remove extra spaces in a 60,000 line (1.9 million
> > character) variable, and looks like this:
> >
> > put replacetext(holdIt1,"[ ]{2,10}",empty) into holdIt
> >
> > Under 8.1.7 I get the dreaded spinning beachball, although the
> replacetext
> > action eventually finishes (after 20 minutes), and the script then runs
> to
> > completion.
> >
> > Any ideas about causes and cures for this issue?
> >
> > Regards,
> >
> > Bruce Pokras
> > Blazing Dawn Software
> > www.blazingdawn.com <http://www.blazingdawn.com/>
> >
> > _______________________________________________
> > use-livecode mailing list
> > use-livecode at lists.runrev.com
> > Please visit this url to subscribe, unsubscribe and manage your
> > subscription preferences:
> > http://lists.runrev.com/mailman/listinfo/use-livecode
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list