| View previous topic :: View next topic |
| Author |
Message |
pspZorba
Joined: 22 Sep 2007 Posts: 156 Location: NY
|
Posted: Fri Dec 21, 2007 10:23 pm Post subject: fopen/open vs sceIoOpen |
|
|
Hi all,
I have to access to a file on ms0, I saw that I can use the fopen/open C-functions or sceIoOpen .
Are they any avantages to use one or the other ?
thx for your help. _________________ --pspZorba--
NO to K1.5 ! |
|
| Back to top |
|
 |
FreePlay
Joined: 04 Jan 2006 Posts: 71 Location: Schenectady, New York, USA
|
Posted: Fri Dec 21, 2007 10:38 pm Post subject: |
|
|
| In my experience the sceIo functions are, for whatever reason, significantly faster than the standard C functions. Last time I checked was when I wrote a program capable of installing multiple custom firmwares. For both reading the DXAR file (a semi-compressed archive of all the files in the firmware) and writing the files onto the NAND chip, sceIo proved to be much faster. |
|
| Back to top |
|
 |
moonlight
Joined: 26 Oct 2005 Posts: 567
|
Posted: Fri Dec 21, 2007 10:50 pm Post subject: |
|
|
open and fopen are implemented calling sceIoOpen... and really with sceIo* you have all needed.
The advantages of open and fopen is to make your code more portable. |
|
| Back to top |
|
 |
pspZorba
Joined: 22 Sep 2007 Posts: 156 Location: NY
|
Posted: Sat Dec 22, 2007 2:24 am Post subject: |
|
|
Thank you guys for your answers. In fact that's what I feared having the choice between efficiency and portability....
I think I am gonna chose the efficiency. _________________ --pspZorba--
NO to K1.5 ! |
|
| Back to top |
|
 |
|