I only have one CPU, so I was not expecting any performance improvement. Instead I expected to lose some performance as all those swapping going on, however because Perl's thread is very "heavy", the downgrade is bigger than one's experience.
The real thing I expected was, the near-equal response to multiple HTTP messages, but sadly that didn't happen. My guess is that it has something to do with Perl's current scheduling model.
With select() and some careful thinking, I get much better results.
Yeah, you are right.
In reply to Re: Re: My experience with Perl threading and the reason I think that I have rushed a little bit
by pg
in thread My experience with Perl threading and the reason I think that I have rushed a little bit
by pg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |