Datagrid performance in substacks
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
-
- Posts: 52
- Joined: Sat Sep 08, 2012 10:50 am
Datagrid performance in substacks
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
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
-
- VIP Livecode Opensource Backer
- Posts: 9660
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: Datagrid performance in substacks
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
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.
-
- Posts: 52
- Joined: Sat Sep 08, 2012 10:50 am
Re: Datagrid performance in substacks
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-
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-
-
- VIP Livecode Opensource Backer
- Posts: 9834
- Joined: Sat Apr 08, 2006 7:05 am
- Location: Los Angeles
- Contact:
Re: Datagrid performance in substacks
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
LiveCode development, training, and consulting services: Fourth World Systems
LiveCode Group on Facebook
LiveCode Group on LinkedIn
-
- Posts: 52
- Joined: Sat Sep 08, 2012 10:50 am
Re: Datagrid performance in substacks
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.
I tried on different Mac workstations, and don't know if the problem it's the same on Windows.
-
- Posts: 52
- Joined: Sat Sep 08, 2012 10:50 am