Click here to Skip to main content
15,921,905 members
Home / Discussions / Visual Basic
   

Visual Basic

 
GeneralRe: Don't load .ocx at runtime Pin
cstrader23228-Jul-08 10:07
cstrader23228-Jul-08 10:07 
Questioncreate button programmatically for loop Pin
khm628-Jul-08 9:00
khm628-Jul-08 9:00 
AnswerRe: create button programmatically for loop Pin
Steven J Jowett28-Jul-08 10:18
Steven J Jowett28-Jul-08 10:18 
QuestionSearch/Evaluate My.Settings.StringCollection Pin
Member 437233128-Jul-08 8:12
Member 437233128-Jul-08 8:12 
AnswerRe: Search/Evaluate My.Settings.StringCollection Pin
paas29-Jul-08 0:47
paas29-Jul-08 0:47 
GeneralRe: Search/Evaluate My.Settings.StringCollection Pin
Member 437233129-Jul-08 2:41
Member 437233129-Jul-08 2:41 
GeneralRe: Search/Evaluate My.Settings.StringCollection Pin
paas29-Jul-08 3:26
paas29-Jul-08 3:26 
GeneralRe: Search/Evaluate My.Settings.StringCollection Pin
Member 437233129-Jul-08 3:38
Member 437233129-Jul-08 3:38 
QuestionExport to Excel or html [modified] Pin
zzsoulzz28-Jul-08 7:27
zzsoulzz28-Jul-08 7:27 
AnswerRe: Export to Excel or html Pin
Paul Conrad28-Jul-08 10:50
professionalPaul Conrad28-Jul-08 10:50 
GeneralRe: Export to Excel or html Pin
zzsoulzz28-Jul-08 20:19
zzsoulzz28-Jul-08 20:19 
GeneralRe: Export to Excel or html Pin
Paul Conrad28-Jul-08 20:22
professionalPaul Conrad28-Jul-08 20:22 
GeneralRe: Export to Excel or html Pin
zzsoulzz28-Jul-08 20:32
zzsoulzz28-Jul-08 20:32 
QuestionString concat slow despite Stringbuilder Pin
frylord28-Jul-08 4:20
frylord28-Jul-08 4:20 
AnswerRe: String concat slow despite Stringbuilder Pin
Roger Alsing28-Jul-08 4:44
Roger Alsing28-Jul-08 4:44 
AnswerRe: String concat slow despite Stringbuilder Pin
Luc Pattyn28-Jul-08 5:18
sitebuilderLuc Pattyn28-Jul-08 5:18 
GeneralRe: String concat slow despite Stringbuilder Pin
frylord28-Jul-08 5:59
frylord28-Jul-08 5:59 
AnswerRe: String concat slow despite Stringbuilder Pin
Chinners28-Jul-08 5:33
Chinners28-Jul-08 5:33 
GeneralRe: String concat slow despite Stringbuilder Pin
frylord28-Jul-08 6:01
frylord28-Jul-08 6:01 
AnswerRe: String concat slow despite Stringbuilder Pin
Paul Conrad28-Jul-08 5:52
professionalPaul Conrad28-Jul-08 5:52 
GeneralRe: String concat slow despite Stringbuilder Pin
frylord28-Jul-08 6:08
frylord28-Jul-08 6:08 
GeneralRe: String concat slow despite Stringbuilder Pin
Paul Conrad28-Jul-08 6:12
professionalPaul Conrad28-Jul-08 6:12 
GeneralRe: String concat slow despite Stringbuilder Pin
Luc Pattyn28-Jul-08 6:21
sitebuilderLuc Pattyn28-Jul-08 6:21 
GeneralRe: String concat slow despite Stringbuilder Pin
frylord28-Jul-08 6:52
frylord28-Jul-08 6:52 
GeneralRe: String concat slow despite Stringbuilder Pin
Luc Pattyn28-Jul-08 7:07
sitebuilderLuc Pattyn28-Jul-08 7:07 
Hi,

if you have a lot of work that needs to be done but is not urgent, then you should organize things
in such a way that other, possibly more urgent things, can be done first. This is accomplished
either by using a thread with lower priority (recommended when available, it is on Windows),
or by "throttling" yourself, i.e. forcing the OS to try and do something else from time to time.

Now giving away the CPU after copying 8 characters is not a good idea, since a thread switch would
cost anywhere between 10 and 1000 times as much as the work you are doing. So the reduction by
255 as suggested by one reply is appropriate.

But as I said before, it only takes some 40 msec althogether, so don't bother; just don't do it
in your own GUI thread!

BTW: GUI threads have a slightly higher priority than other threads at "normal priority" anyway.

And yes, it would be different on simpler operating systems, as well as on real-time environments,
as could be found in embedded systems.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Voting for dummies? No thanks. Dead | X|


General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.