Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ Library support » LineEdit, EditFields, DocEdit » How to do fast Append & scroll in LineEdit with MT?
Re: How to do fast Append & scroll in LineEdit with MT? [message #45647 is a reply to message #45646] Fri, 18 December 2015 15:34 Go to previous messageGo to previous message
cbpporter is currently offline  cbpporter
Messages: 1401
Registered: September 2007
Ultimate Contributor
I did some further testing. I am using a task that outputs all numbers form 0 to 99999 as a test. Running it the Windows console is very slow, over 4 seconds. But running it though LocalProcess is about 230 ms. So my goal is to get relatively close to 230 ms (300-400 ms will do) while still having the program be responsive.

I tested:
1. Updating the whole LineEdit. Unusably slow of course.
2. Using Insert and then ScrollEnd. Ignoring the corrupted output, I got almost 3 seconds.
3. Using only Insert. 2.4 seconds.
4. Using my favorite control: ColumnList! Plus using SetCursor to move to last element. I need to pre-process the output since ColumnList does not understand '\n', but it only takes 280 ms.
5. ColumnList and no SetCursor: somehow on average 10 ms slower Smile.

So the conclusion is that maybe LineEdit is not the right control to use here?

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: What do you think about this approach to making CodeEditor more user extendable?
Next Topic: NotNull can be fooled
Goto Forum:
  


Current Time: Sat Apr 27 15:57:44 CEST 2024

Total time taken to generate the page: 0.04227 seconds