i have been looking @ speed of software trying fine line here , there can speed up. not need general optimisation. have found specific line of background unmanaged code seems taking long time, when amount of calls considered. line:
system.windows.forms.unsafenativemethods.getwindowtext(handleref hwnd, stringbuilder lpstring, int nmaxcount)
does know:
how speed up/bypass if it's not useful/replace better.
specifically have written in code causes called - more example better on one! i've found related topics on google. each of these relate specific issue such error occurring when 1 thread asks thread , other thread has become detached. this link helpful, can't quiet head around it. , appreciated.
thanks!
it sounds you're using control.text
lot - seems caller of getwindowtext
.
if you're updating ui results of simulation every time simulation makes progress, may able improve performance rate-limiting updates (e.g. update 5 times per second).
Comments
Post a Comment