[android-developers] open penalty

2012-03-21 Thread bob

Is there a significant performance penalty for opening files on the SD card?

For instance, if you try to play a movie by opening 1000 PNG files in a 
directory on the sd card, is this way worse than having them all 
concatenated in one file?

My (probably flawed analysis) is this:

Since the SD card is not a hard drive, the 10ms or so seek penalty is not 
there.  So, there probably isn't much difference.

Anyone have any other views?  

FYI, I'm basically working on a hi-res loss-less movie player.

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en

Re: [android-developers] open penalty

2012-03-21 Thread TreKing
On Wed, Mar 21, 2012 at 9:02 AM, bob b...@coolfone.comze.com wrote:

 For instance, if you try to play a movie by opening 1000 PNG files in a
 directory on the sd card, is this way worse than having them all
 concatenated in one file?


Try both, profile both, compare.

-
TreKing http://sites.google.com/site/rezmobileapps/treking - Chicago
transit tracking app for Android-powered devices

-- 
You received this message because you are subscribed to the Google
Groups Android Developers group.
To post to this group, send email to android-developers@googlegroups.com
To unsubscribe from this group, send email to
android-developers+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en