make my application faster?

0 views
Skip to first unread message

Flex Baby

unread,
Apr 9, 2009, 2:23:45 AM4/9/09
to Cleveland Adobe Flex Users Group
hi,
my application is map serving application.but it take time to load.we
r using many images to indicate the points.if we have 5000 results in
a map.we r using 5000 images in that map to indicate points.
any chance to improve & fast load my application?
i tried weborb.but i don't know how to use that.
i am beginner of flex.
so provide me ideas & samples to improve my application?

Doug Johnson

unread,
Apr 9, 2009, 8:30:43 AM4/9/09
to cle...@googlegroups.com
Without more detail.....
  • Are a bunch of these images identical (pins, stars, whatever)?  In which case download once and refer to in your object.
  • If you have 5000 separate images (can't imagine, but....) build a container for them all so you are downloading one big hunk rather than lots of smaller images
  • Can you leave the images on the server until you need them?  Download on demand.
Sorry about being general, but if your problem is "how do I download 5000 images faster?" the answer is "make them smaller" or "get more bandwidth".  If your question is "how do I make my app faster to use" the answer depends on "what does your app do and how are you doing it now?" which you haven't really answered in detail.
--
Doug Johnson
"When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." - R. Buckminster Fuller
216-502-3372 Direct voice
602-865-7041 Direct eFax

Doug Pierce

unread,
Apr 9, 2009, 8:59:14 AM4/9/09
to cle...@googlegroups.com
I haven't had coffee yet this morning so excuse any mistakes...

I assume you mean map in the geographical sense and not in the
programming sense...

- You likely aren't putting 5,000 images on a map at once, as even if the
images were 5 pixels by 5 pixels that would be mean that the screen
would need to have a resolution of 25,000 by 25,000 and that is with
no space between the images.

- HTTP not going to be all that efficient with 5K requests for images. Lots
of overhead for the calls on a per image basis...

- If the images are mostly from a limited set of objects, embed the common
ones them via css and I believe they will get stuffed in your SWF. I think you
can rename your .swf file .zip and open it up and look at the content.

- WebORB? I can't imagine (I hope you aren't) serving images as
binary content from
WebOrb, it could be done, but it probably shouldn't be done. I assume
your data lat/long
and url for the image you want to retrieve via WebORB. That's fine,
but you might also look
at some sort of simple REST style or WS calls that return xml of that
information
it might be easier for you initially if the WebORB tutorials aren't helping.

- Regardless of whether you are mashing up or even if you are using
navtec or maps
from other providers, you should be able to easily get the coordinates
for at least 0,0, and x,y and you can then convert lat long
appropriately to place
images on map or if you are mashing up, you can call a library to do it.

- On the subject of retrieving those images, you might want to do calls that
return the images within the lat/long boundaries of the map image you are
displaying and as the user pans or moves to different parts of the map,
you call and ask your database (via rest/ws or WebORB or BlaseDS ,etc)
for new images and their coordinates within the lat/long of the image.
There are a lot of easy to use geocoding extensions for databases and libraries
to help you access the data. Postgres has a GIS extension that is nice, I
am sure mysql has something, but I don't use mysql.

-Doug

Flex Baby

unread,
Apr 9, 2009, 11:27:25 AM4/9/09
to Cleveland Adobe Flex Users Group
oh sory guys,
i am using 20 or 25 images.
i use that images around 5000 to 7000 counts.

Brian Meloche

unread,
Apr 9, 2009, 12:04:42 PM4/9/09
to cle...@googlegroups.com
Are you calling the images via HTTP?

If yes, you can speed things up by making sure that directory is set
on your web server to add an expires header to each request. That way,
it will only get the image once and use browser cache for the rest.

Also, make sure the directory is GZip'd, which will compress the
request so less bytes are sent. You can GZip the entire website for
your best effect, including where the SWFs are located.

Both techniques will improve bandwidth and are valid for HTML and
JavaScript requests, too.
--
Sent from my mobile device

Sincerely,

Brian Meloche
brianmeloche at gmail dot com
Producer and Host, CFConversations Podcast
http://www.cfconversations.com
Blog: http://www.brianmeloche.com/blog/
Adobe Community Expert:
http://www.adobe.com/communities/experts/members/BrianMeloche.html
Twitter: http://twitter.com/coofuushun
User Group Manager,
Cleveland ColdFusion Users Group,
http://www.clevelandcfug.org
Reply all
Reply to author
Forward
0 new messages