looping speed or file writing speed?

Everything else that doesn't fall into one of the other PB categories.
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

looping speed or file writing speed?

Post 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...
~Dreglor
LarsG
Enthusiast
Enthusiast
Posts: 713
Joined: Mon Jun 02, 2003 1:06 pm
Location: Norway
Contact:

Post by LarsG »

PB's file operations aren't very optimized...
You should search for Rings' FastFile library..

AMD Athlon XP2400, 512 MB RAM, Hercules 3D Prophet 9600 256MB RAM, WinXP
PIII 800MHz, 320 MB RAM, Nvidia Riva Tnt 2 Mach 64 (32MB), WinXP + Linux
17" iMac, 1.8 GHz G5, 512 MB DDR-RAM, 80 GB HD, 64 MB Geforce FX 5200, SuperDrive, OSX
User avatar
Rings
Moderator
Moderator
Posts: 1435
Joined: Sat Apr 26, 2003 1:11 am

Post by Rings »

plz post a short snippet with your problem.
SPAMINATOR NR.1
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Post by Dreglor »

ok thx
also rings i don't need to post any code larsG already gave me a handy fix
~Dreglor
User avatar
blueznl
PureBasic Expert
PureBasic Expert
Posts: 6172
Joined: Sat May 17, 2003 11:31 am
Contact:

Post by blueznl »

explain in short the problem and fix to all of us, we can learn! (or so we do hope)
( PB6.00 LTS Win11 x64 Asrock AB350 Pro4 Ryzen 5 3600 32GB GTX1060 6GB - upgrade incoming...)
( The path to enlightenment and the PureBasic Survival Guide right here... )
Dreglor
Enthusiast
Enthusiast
Posts: 759
Joined: Sat Aug 02, 2003 11:22 pm
Location: OR, USA

Post by Dreglor »

um download rings fastfile lib and use the new commands...
~Dreglor
Post Reply