--- Simon Willnauer <[EMAIL PROTECTED]>
wrote:

...
> Using the client thread as the indexing thread might
> just cause some
> performance drawback but that's considerable for

Actually, I would not even assume that: handing tasks
over between threads causes context switch, and more
cache misses. In general, doing everything as a
'batch' from the same thread may well have higher
throughput than handing things over. Or it might be as
fast. Or, for specific problem subset, you may be
right that it'd be slower. ;-)
You can consider this a subset of the old
'co-operative vs. pre-emptive scheduling' debate.

Point obviously is that this is kind of thing that
needs to be measured, if you care deeply about
performance. Intuition often leads one to wrong
direction in cases like this.
So often you start with the simplest workable
solution, and consider more sophisticated approaches
when you have time and/or find out this part is the
main performance bottleneck.

-+ Tatu +-


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to