re, Giant files

Pierre Sahores psahores at easynet.fr
Sat Nov 9 08:53:01 EST 2002


Sadhunathan Nadesan a écrit :
> 
> | Try something alike :
> |
> | > on mouseup
> | > put "1" into startread
> | > open file thefile for read
> | > read from file thefile until eof
> | > put the num of lines of it in endtoread
> | > close file thefile
> | > repeat while startread < endtoread
> | > open file thefile for read
> | > read from file thefile at startread for 99 lines
> | > ...
> | > do what you need with it
> | > ...
> | > close file thefile
> | > add 100 to startread
> | > end repeat
> | > end mouseup
> |
> | --
> | Cordialement, Pierre Sahores
> 
> Merci bocoup Pierre,
> 
> I'll try it and let you know the speed.  I have
> to guess it's going to be slow though.  But at
> least it should run to completion.
> 
> Perhaps this will inspire MC coders to optimize!
> Take the speed challenge!  Put your MC script up
> against a compiled language! A prize for the
> fastest program.
> 
> Aloha,
> Sadhu
> _______________________________________________
> metacard mailing list
> metacard at lists.runrev.com
> http://lists.runrev.com/mailman/listinfo/metacard

;)

As an addone to my last mail on the other thread, try to replace :

> put the_counter + 1 into the_counter

with

> add 1 to the_counter

Not sure if it will speed up the script but, intersted to know if...

-- 
Cordialement, Pierre Sahores

Inspection académique de Seine-Saint-Denis.
Applications et bases de données WEB et VPN
Qualifier et produire l'avantage compétitif



More information about the metacard mailing list