Page 1 of 1

Datagrid performance in substacks

Posted: Thu Mar 21, 2019 4:20 pm
by giovanni_c
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

Re: Datagrid performance in substacks

Posted: Thu Mar 21, 2019 4:49 pm
by dunbarx
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

Re: Datagrid performance in substacks

Posted: Thu Mar 21, 2019 6:01 pm
by giovanni_c
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-

Re: Datagrid performance in substacks

Posted: Thu Mar 21, 2019 7:22 pm
by FourthWorld
Was the Project Browser open at the time you ran your test?

Re: Datagrid performance in substacks

Posted: Fri Mar 22, 2019 3:07 pm
by giovanni_c
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.

Re: Datagrid performance in substacks

Posted: Thu Mar 28, 2019 5:56 pm
by giovanni_c