Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 09-09-2011, 10:30 AM   #1 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 59
duvdev is on a distinguished road
Default application load time and wight

Hello,

I am writing a program for ipad that loads around 40 pictures at size of 550 * 800 pixel.

I have 2 questions regarding it:
1. can I have some kind of estimation what will be predicted application wight?

2. what will be the estimated loading time of the application?

thanks ,
Shlomi
duvdev is offline   Reply With Quote
Old 09-09-2011, 10:34 AM   #2 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

1. What do you mean by "wight"?

2. That's hard to estimate, it will depend on the hardware capabilities of the device, bundle size, and amount of processing you do in the didFinishLaunchingWithOptions method.

But keep in mind that you should return as fast as possible from that method. If your app takes too long to load (over 20 seconds I think) iOS will kill it.
baja_yu is offline   Reply With Quote
Old 09-09-2011, 10:50 AM   #3 (permalink)
Registered Member
 
Join Date: Aug 2011
Posts: 59
duvdev is on a distinguished road
Default

thanks for the fast answer.

By "wight" what will be the final all size in kbytes

I have only the default processing in dudFunushLunchingWithOptions
duvdev is offline   Reply With Quote
Old 09-09-2011, 12:00 PM   #4 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

You mean weight, as in size. You can only estimate it. Compile the app for release then compress the binary. That size in the App Store is usually just below that compressed archive. No way to tell exactly.
baja_yu is offline   Reply With Quote
Old 09-09-2011, 12:12 PM   #5 (permalink)
Registered Member
 
Join Date: Aug 2011
Location: USA
Posts: 18
Ridgewood is on a distinguished road
Default

You could estimate the size of your graphics by taking width*height*(4 bytes per pixel if there's an alpha channel, 3 otherwise) and then throwing in an estimate for compression factor.

In your case, for RGBA PNGs with 50% average compression 550*800*4*40*0.5 is around 35 MB. For RGB JPG, with 70% compression 550*800*3*40*0.3 is around 16 MB.

My suggestion to minimize app load time would be to load them in the code on demand when you want to use them as opposed to loading them all at app load time.
__________________
Apps:
Exian - Brick out in space

www | Twitter | Facebook
Ridgewood is offline   Reply With Quote
Old 09-09-2011, 12:16 PM   #6 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Quote:
Originally Posted by Ridgewood View Post
You could estimate the size of your graphics by taking width*height*(4 bytes per pixel if there's an alpha channel, 3 otherwise) and then throwing in an estimate for compression factor.

In your case, for RGBA PNGs with 50% average compression 550*800*4*40*0.5 is around 35 MB. For RGB JPG, with 70% compression 550*800*3*40*0.3 is around 16 MB.
Why would he calculate the uncompressed image size to then estimate the compressed size again? He already has the files and can see how large they are. But that's just the size of the files. There could be other resources involved, then the app binary itself. Compiling it is the quickest, easiest and most precise way.
baja_yu is offline   Reply With Quote
Old 09-09-2011, 12:25 PM   #7 (permalink)
Registered Member
 
Join Date: Aug 2011
Location: USA
Posts: 18
Ridgewood is on a distinguished road
Default

I don't disagree that throwing the pix into a binary to find the size is the most accurate way to calculate the size. However, if you haven't already got the images (I didn't see anything in the posts to say that he does) and you're just kind of doing some back of napkin calculations, then you can use the formulas in my post.
__________________
Apps:
Exian - Brick out in space

www | Twitter | Facebook
Ridgewood is offline   Reply With Quote
Old 09-09-2011, 12:34 PM   #8 (permalink)
Reading the Documentation
 
baja_yu's Avatar
 
Join Date: Sep 2010
Location: 45.255019,19.844908
Posts: 5,414
baja_yu has a spectacular aura about
Default

Quote:
Originally Posted by Ridgewood View Post
(I didn't see anything in the posts to say that he does)
I don't see anything that he doesn't.

Also, the file size of the image will depend greatly on the contents, not just format, pixel-size and compression. Try creating a 550x800 image in Photoshop that is just white, and save it to JPEG with quality 7. It will be less than 50KB. Then apply the Noise filter to the image and save it again with the same settings. It will be about 1MB.
baja_yu is offline   Reply With Quote
Old 09-09-2011, 12:43 PM   #9 (permalink)
Registered Member
 
Join Date: Aug 2011
Location: USA
Posts: 18
Ridgewood is on a distinguished road
Default

Yep, you're right, there are lots of variables. However, if you make some reasonable assumptions you can come up with a reasonable estimate. If you already have the images, you don't need to estimate.....
__________________
Apps:
Exian - Brick out in space

www | Twitter | Facebook
Ridgewood is offline   Reply With Quote
Old 09-09-2011, 01:15 PM   #10 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 241
MattW is on a distinguished road
Default

Quote:
Originally Posted by duvdev View Post
thanks for the fast answer.

By "wight" what will be the final all size in kbytes

I have only the default processing in dudFunushLunchingWithOptions
Well, I don't know about you guys, but my lunches can take several hours and that's without many options....
__________________

Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----


FourSixteen Productions
MattW is offline   Reply With Quote
Old 09-09-2011, 01:18 PM   #11 (permalink)
Registered Member
 
Join Date: Jul 2011
Posts: 241
MattW is on a distinguished road
Default

Quote:
Originally Posted by duvdev View Post
Hello,

I am writing a program for ipad that loads around 40 pictures at size of 550 * 800 pixel.

I have 2 questions regarding it:
1. can I have some kind of estimation what will be predicted application wight?

2. what will be the estimated loading time of the application?

thanks ,
Shlomi
I think the pertinent question here is why do you want to know this?
__________________

Highlight PDF text like no other app: iHighlight (now available for iPad and iPhone!)
-----
Create iPhone lists with no typing: Insta-List
-----
Make spelling fun, and create your own tests: iWillSpell
-----
A fast, elegant flashlight app: Insta-Light
-----


FourSixteen Productions
MattW is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 415
11 members and 404 guests
apatsufas, Eclectic, fiftysixty, JackReidy, jeroenkeij, Sami Gh, teebee74, tim0504, UMAD, yomo710, yuncarl28
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,672
Threads: 94,121
Posts: 402,904
Top Poster: BrianSlick (7,990)
Welcome to our newest member, yuncarl28
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 04:59 AM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0