English 中文(简体)
阅读:Pool:自然比Thread慢: 集合还是我的错误?
原标题:Is Thread::Pool::Simple naturally slower than Thread::Pool or is it my mistake?

我们早就在建树: 乌班图最新版本的集合,这样我们就改写了该代码,以便使用Thread:Pool:Simple,因为Perl模块是用分发预先包装的。

然而,我们发现,不管我们有多少条read,它更不用说电负荷了。 事实上,其运行速度比其使用速度要低10x。

我读过透镜:Pool:Simple代码迅速,一件在我跳出:它用许多电话打yield(,这种系统在LC 2.6/3.0系统中是一种可怕的想法。

我们少用的文字是,从积极的MQ信息格中读到信息,并将其输入我们的数据库系统。 现: 这一人才库很容易跟上,使8个非行连接起来,同时撰写。 注: 集合:它似乎在先工作,但是,由于它无法继续工作,时间的长短却在不断上升。

Does anyone else have experience with these two versions of Perl thread pools? Am I making some obvious mistake with the use of Thread::Pool::Simple?

问题回答

暂无回答




相关问题
Why does my chdir to a filehandle not work in Perl?

When I try a "chdir" with a filehandle as argument, "chdir" returns 0 and a pwd returns still the same directory. Should that be so? I tried this, because in the documentation to chdir I found: "...

How do I use GetOptions to get the default argument?

I ve read the doc for GetOptions but I can t seem to find what I need... (maybe I am blind) What I want to do is to parse command line like this myperlscript.pl -mode [sth] [inputfile] I can use ...

Object-Oriented Perl constructor syntax and named parameters

I m a little confused about what is going on in Perl constructors. I found these two examples perldoc perlbot. package Foo; #In Perl, the constructor is just a subroutine called new. sub new { #I ...

Where can I find object-oriented Perl tutorials? [closed]

A Google search yields a number of results - but which ones are the best? The Perl site appears to contain two - perlboot and perltoot. I m reading these now, but what else is out there? Note: I ve ...

热门标签