Datagrid performance in substacks

LiveCode is the premier environment for creating multi-platform solutions for all major operating systems - Windows, Mac OS X, Linux, the Web, Server environments and Mobile platforms. Brand new to LiveCode? Welcome!

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
giovanni_c
Posts: 52
Joined: Sat Sep 08, 2012 10:50 am

Datagrid performance in substacks

Post by giovanni_c » Thu Mar 21, 2019 4:20 pm

Hi everybody,
I'm experiencing a very strange behavior that I cannot understand.
Here is the scenario: I have a datagrid in form format in which I load about 17k rows from a file using the dgText.
The datagrid completes all the operations in about 500 milliseconds if it's located in the mainstack but it completes in 2 seconds (4x times slower...) when it's in a substack, even if the mainstack is totally empty.
I guess that this behavior is related to the development environment because if I create the standalone the performances are quite the same.

Can you help me to understand why this happens?
Do you think that this can be reported as a bug of the devenv?

I attached the file useful to try this behavior.

Thank you for your attention
Attachments
dataGridPerformanceIssue.zip
(154.67 KiB) Downloaded 207 times

dunbarx
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9655
Joined: Wed May 06, 2009 2:28 pm
Location: New York, NY

Re: Datagrid performance in substacks

Post by dunbarx » Thu Mar 21, 2019 4:49 pm

Not sure. Others will know.

But it may have to do strictly with dataGrids. I made a new stack with a subStack. I loaded all your data into a custom prop of the mainStack, and it took 60 ticks to load that data into an ordinary field.

It took 60 ticks as well to load that data into a field on the sub stack.

Craig Newman
Last edited by dunbarx on Fri Mar 22, 2019 5:03 pm, edited 1 time in total.

giovanni_c
Posts: 52
Joined: Sat Sep 08, 2012 10:50 am

Re: Datagrid performance in substacks

Post by giovanni_c » Thu Mar 21, 2019 6:01 pm

Hi Dunbarx, thank you for your reply.
I'm quite sure that the problem is related to the datagrid, my problem is that I don't understand why when the stack is a substack it takes 4 times slower.
I need to use the datagrid for my purposes and fields are not useful to me.
Bye-

FourthWorld
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 9833
Joined: Sat Apr 08, 2006 7:05 am
Location: Los Angeles
Contact:

Re: Datagrid performance in substacks

Post by FourthWorld » Thu Mar 21, 2019 7:22 pm

Was the Project Browser open at the time you ran your test?
Richard Gaskin
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn

giovanni_c
Posts: 52
Joined: Sat Sep 08, 2012 10:50 am

Re: Datagrid performance in substacks

Post by giovanni_c » Fri Mar 22, 2019 3:07 pm

Hi, I don't use the project browser but you can also try by yourself with the attached stacks.
I tried on different Mac workstations, and don't know if the problem it's the same on Windows.

giovanni_c
Posts: 52
Joined: Sat Sep 08, 2012 10:50 am

Re: Datagrid performance in substacks

Post by giovanni_c » Thu Mar 28, 2019 5:56 pm


Post Reply

Return to “Getting Started with LiveCode - Experienced Developers”