Page 1 of 1

looping speed or file writing speed?

Posted: Fri Apr 02, 2004 7:10 am
by Dreglor
now i been told that pb is fast (and it been fast for what i seen)
but now i have a problem in my packing program that unpacking them and writing them are extreamly slow
it takes almost a full min to unpack a 7 meg file i did some testing and i found it was the loops
whats even more intresting is that moving the file with diffrent types of loops (to see which was the fastest) got the same speed except for one type, for loops the for loop (with debuggin off) got 1 second inrease in speed and in debug it 3-5 while "while" loops and repeat loops were identical

and the speed test i did was copying the same file to the same location
now it still about a minute

is this a bug with the beta or is it something else like my hd or is this the way it is...

Posted: Fri Apr 02, 2004 7:51 am
by LarsG
PB's file operations aren't very optimized...
You should search for Rings' FastFile library..

Posted: Fri Apr 02, 2004 8:48 am
by Rings
plz post a short snippet with your problem.

Posted: Fri Apr 02, 2004 9:19 am
by Dreglor
ok thx
also rings i don't need to post any code larsG already gave me a handy fix

Posted: Fri Apr 02, 2004 9:57 am
by blueznl
explain in short the problem and fix to all of us, we can learn! (or so we do hope)

Posted: Fri Apr 02, 2004 10:59 am
by Dreglor
um download rings fastfile lib and use the new commands...