sceIoRead slower than fgetc?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Brunni
Posts: 186
Joined: Sat Oct 08, 2005 10:27 pm

sceIoRead slower than fgetc?

Post by Brunni »

Hello ^^
I have a problem with sceIoRead, it's extremely slow when reading only one byte from a file. It takes more than 20'000% the time from a fgetc to complete.
I took a look at the stdio source, and fgetc calls fread with 1,1, as a size, and fread returns sceIoRead(file, buffer, 1). It's what I'm doing also.
Can somebody explain me why there's a so big difference? sceIoRead takes about the same time to read 10k or 1 byte, and I don't want to do buffering because I have not much free memory, and lots of files will be opened at once.
Thanks in advance
Sorry for my bad english
Image Oldschool library for PSP - PC version released
Post Reply