File reading from host extremely slow?
Posted: Mon Jun 16, 2008 8:12 pm
Hello.
I have recently been experimenting with files.
I use ps2link on the ps2 side and ps2client on the pc side (linux).
So far I have only been reading files from host:.
When I try to read a file byte by byte with fgetc
and immediately print it out with printf i notice that the characters are incoming about 1 each 0,5 second.
And even if i remove the printf outputing each character as it's read from the file it still takes a couple of seconds to read the file.
And the file is only 33bytes in size.
On the other hand the elf file which is much larger get's loaded almost immediately when I execute it.
Is there a faster way to read files?
Is there any more information I should provide or is this a known issue?
Thanks
I have recently been experimenting with files.
I use ps2link on the ps2 side and ps2client on the pc side (linux).
So far I have only been reading files from host:.
When I try to read a file byte by byte with fgetc
and immediately print it out with printf i notice that the characters are incoming about 1 each 0,5 second.
And even if i remove the printf outputing each character as it's read from the file it still takes a couple of seconds to read the file.
And the file is only 33bytes in size.
On the other hand the elf file which is much larger get's loaded almost immediately when I execute it.
Is there a faster way to read files?
Is there any more information I should provide or is this a known issue?
Thanks