[Gambas-user] Gambas is slower than Python??

Jaap Cramer jaap_cramer at ...67...
Sun Jan 18 22:09:12 CET 2009


right. my fault... :(
the line s = Split(Split("QWERTYUIOP", "WE")[2], ("IO"))[0] is approx 3 times //SLOWER// than the Scan method.

sorry again :)




> From: gambas at ...1...
> To: gambas-user at lists.sourceforge.net
> Date: Sun, 18 Jan 2009 21:53:34 +0100
> Subject: Re: [Gambas-user] Gambas is slower than Python??
> 
> On dimanche 18 janvier 2009, Jaap Cramer wrote:
> > I timed the function with this line  s = Scan("QWERTYUIOP", "*WE*IO*")[1]
> > to be 2.948007999919 seconds But there is a faster way:
> >
> > s = Mid("QWERTYUIOP", InStr("QWERTYUIOP", "WE"), InStr("QWERTYUIOP", "IO"))
> > only takes 0.525806999998 sec!
> >
> > Maybe the Scan function is not that optimized? :)
> >
> > Jaap
> >
> 
> And I'm not sure your code does the right thing. :-)
> 
> -- 
> Benoit Minisini
> 
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> SourcForge Community
> SourceForge wants to tell your story.
> http://p.sf.net/sfu/sf-spreadtheword
> _______________________________________________
> Gambas-user mailing list
> Gambas-user at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gambas-user

_________________________________________________________________
De leukste online filmpjes vind je op MSN Video!
http://video.msn.com/video.aspx?mkt=nl-nl


More information about the User mailing list