Datagrid speed problem

Trevor DeVore lists at mangomultimedia.com
Wed Sep 16 15:24:48 EDT 2009


On Sep 16, 2009, at 3:04 PM, Beat Cornaz wrote:

> >I don't think that bringing a 2.9 project into 3.5 would cause these
> >sorts of problems. You should only have one instance of the
> >revDataGridLibrary in memory at any one time. Can you explain a  
> little
> >more about how your project is set up and what stack you are building
> >the engine (standalone?) with?
>
> I needed the extra revDataGridLibrary, because otherwise the  
> datagrids in my stacks do not work. They are there, but nothing  
> happens. As soon as I include the extra revDataGridLibrary as a  
> substack, I get the functionality of the dataGrids.
> When I loaded the extra revDataGridLibrary into memory, I was asked  
> to purge it and I clicked 'OK'. Then I made this revDataGridLibrary  
> a substack of my mainstack.
>
> My project is set up as follows :
>
> mainstack (splash) with the engine
> 30 substacks, with 3 of them containing a dataGrid.

To work with data grids and a splash stack you need to trigger the  
inclusion of the data grid when you build a standalone. I would remove  
the revDataGridLibrary as a substack of your main stack and take a  
look at the last two steps in this lesson:

What Do I Need to Do To Deploy a Standalone With A Data Grid?: <http://revolution.screenstepslive.com/spaces/revolution/manuals/datagrid/lessons/3397-What-Do-I-Need-to-Do-To-Deploy-a-Standalone-With-A-Data-Grid- 
 >

I think that will fix your problem.

> The speedtest I did was as follows :
> I compared a substack with a dataGrid on it  with a newly made  
> mainstack with a similar dataGrid (same number of columns,  
> labelnames etc).
> I used the same handler to import a list of tab & cr delimited  
> data , like :
>
> Client1 tab Task1 tab Task2 tab Task3 cr
> Client2 tab Task1 tab Task2 tab Task3 tab Task4 cr
> Client3 tab Task1 tab Task2 tab Task3
>
> The speed difference was quite big.

Is it possible that your original data grid had some custom columns or  
scripts that run when you test that aren't present in the newly made  
data grid?

> Trevor, once again, thanks a lot for your patience and good advice.

You're welcome.

-- 
Trevor DeVore
Blue Mango Learning Systems
ScreenSteps: http://www.screensteps.com
Developer Resources: http://revolution.bluemangolearning.com



More information about the use-livecode mailing list