Quantcast
Channel: User Sinatr - Stack Overflow
Viewing all articles
Browse latest Browse all 609

Comment by Sinatr on User interface freezes during data parsing through async function

$
0
0
The majority of work seems to be done in UI thread, which is a problem. Move operations with UI controls out of parse method. Call method synchronously in ThreadProc and invoke only text assignment (text should be fully ready). Avoid updating UI elements too frequenty (text or progress), introduce counter in tight loops and only update once when counter reaches at least 1000 or so.

Viewing all articles
Browse latest Browse all 609

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>