forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

sceIoRead slower than fgetc?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Brunni



Joined: 08 Oct 2005
Posts: 186

PostPosted: Sat Mar 04, 2006 6:33 am    Post subject: sceIoRead slower than fgetc? Reply with quote

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
Oldschool library for PSP - PC version released
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group