Whats most efficient in data grid...

Getting into LiveCode for iOS? Ask your questions here.

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
Jamesplank
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 23
Joined: Sat Jul 09, 2011 10:03 am

Whats most efficient in data grid...

Post by Jamesplank » Mon Jul 23, 2012 11:44 pm

Hi all and thanks in advance.
Im about to start a project and I can tackle it two ways, but I'm not sure how livecode and iOS (and eventually android) will handle each. Ie which would be most effecient for speed and resources.
I wonder if someone can give me some hints... The project is...

I'm make a mobile real estate magazine.

We currently run a physical one.
The idea is to make each advertisement for a property a different size depending
On how much space they purchased in the physical magazine.
So there is
500 real estate advertisements in a scrolling data grid.

The grid form will have 2 available heights
Half the screen and all of the screen. Ie two ads visible or just one.
So the line height is NOT fixed.

I intend to create the controls on the fly
As each advert could look different depending on the client.
The data for the positioning of the fields etc wil be in XML passed in by the grid array.

Should I....
1) use the grid the expected way with 10 controls for each advert. With images being grabbed from the net
Via our server and display in the a form grid .... Or
2) in an off screen card create the advert via the XML positioning and controls
Then. Import a screen shot into a bitmap, and place a single image control hoolding the screenshot
On the form? And destroy the original controls ready for the next screen shot.

So the question is ... Which would be handled better
500x 10 controls per form= 5000 controls in a data grid with 1500 of these holding bitmap images of property photos OR
500 bitmaps. One per form . With the property images incorporated into one bitmap with the text???

Ok that's a mouthful . I hope I was clear enough
Thanks for any help

Regards
James

Post Reply