RFile

Login to reply to this topic.
Tue, 2007-09-18 06:59
Joined: 2007-09-18
Forum posts: 8

Hi Initially i used the following code to read from a file to memory.

file *fp;
fp=fopen(filename);
fp.read(RGB.Base(),src[0]*src[1]*3/2);

But later i used RFile as follows

RFile fp;
file.Open(iFsSession, KFileName1, EFileStream|EFileRead);
TPtr8 base1(YUV.Base(),length) ;
file.Read(base1, src[0]*src[1]*3/2);

I found a great improvement in the performance. I could get a performance improvement of allmost five times. Can anybody explain me why? Thanks in advance.


Tue, 2007-09-18 08:50
NewLC AdministratorSymbian AccreditedForum Nokia Champion
Joined: 2003-01-14
Forum posts: 2006
Re: RFile

file is a wrapper on top of of RFile so RFile will always be faster. I can't explain the 5x improvement however, that seem a lot to me.


Eric Bustarret
NewLC Founder & CEO / Professional Symbian OS Consultant

Tue, 2007-09-18 12:59
Joined: 2007-09-18
Forum posts: 8
Re: RFile

Thanks man Smiling

  • Login to reply to this topic.