Send_Info and performance (OpenInsight 32-bit Specific)
At 11 OCT 2005 09:13:18AM Simon G Wilmot wrote:
Hi,
Just an observation as much as a query, unless someone can tell me why the awful performance with Send_Info displaying a Status.
I did a noddy program to loop from 1 to 1000000 with a little calculation of percentage in it.
On its own it ran in 6 seconds.
Just displaying the change of percentage integer, still 6 seconds.
Displaying the percentage for each loop, 12 mins and 31 seconds.
Anyone any thoughts ??
Regards,
Simon
At 11 OCT 2005 02:09PM Richard Hunt wrote:
Probably not what you want…
Do the send_info only when the percentage changes. Rather than sending 1,000,000 send_info; send 100.
At 11 OCT 2005 03:35PM Mike Ruane wrote:
It's slow because you're calling a function that does a couple of memory functions and then a display- use the percentage.
Mike
At 11 OCT 2005 04:36PM Richard Hunt wrote:
Simon,
I just thought that I should comment that the SEND_INFO subroutine does send the information to the window that has focus. So if you are doing the percentage for window "A" and window "B" has focus, then the SEND_INFO subroutine will send the information to window "B" not window "A".
At 12 OCT 2005 02:56AM Simon G Wilmot wrote:
Thanks all.
Had already decided the percentage on change only was the way forward.
Simon
At 12 OCT 2005 11:07AM [url=http://www.sprezzatura.com]The Sprezzatura Group[/url] wrote:
If you want to you can get the STATUSLINE property and use Set_Property to set the text rather than send_info - this is twice as fast… but still slow :)
World leaders in all things RevSoft