mirror of
https://github.com/Ponce/slackbuilds
synced 2024-11-24 10:02:29 +01:00
perl/perl-Coro: Updated for version 6.57.
Signed-off-by: Dave Woodfall <dave@slackbuilds.org> Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
This commit is contained in:
parent
35c8dd7cd0
commit
08033625ce
3 changed files with 18 additions and 18 deletions
|
@ -1,29 +1,29 @@
|
||||||
This module collection manages continuations in general, most often in
|
This module collection manages continuations in general, most often in
|
||||||
the form of cooperative threads (also called coros, or simply "coro" in
|
the form of cooperative threads (also called coros, or simply "coro" in
|
||||||
the documentation). They are similar to kernel threads but don't (in
|
the documentation). They are similar to kernel threads but don't (in
|
||||||
general) run in parallel at the same time even on SMP machines. The
|
general) run in parallel at the same time even on SMP machines. The
|
||||||
specific flavor of thread offered by this module also guarantees you
|
specific flavor of thread offered by this module also guarantees you
|
||||||
that it will not switch between threads unless necessary, at
|
that it will not switch between threads unless necessary, at
|
||||||
easily-identified points in your program, so locking and parallel access
|
easily-identified points in your program, so locking and parallel access
|
||||||
are rarely an issue, making thread programming much safer and easier than
|
are rarely an issue, making thread programming much safer and easier
|
||||||
using other thread models.
|
than using other thread models.
|
||||||
|
|
||||||
Unlike the so-called "Perl threads" (which are not actually real threads
|
Unlike the so-called "Perl threads" (which are not actually real threads
|
||||||
but only the windows process emulation (see section of same name for more
|
but only the windows process emulation (see section of same name for
|
||||||
details) ported to UNIX, and as such act as processes), Coro provides a
|
more details) ported to UNIX, and as such act as processes), Coro
|
||||||
full shared address space, which makes communication between threads very
|
provides a full shared address space, which makes communication between
|
||||||
easy. And coro threads are fast, too: disabling the Windows process
|
threads very easy. And coro threads are fast, too: disabling the Windows
|
||||||
emulation code in your perl and using Coro can easily result in a two to
|
process emulation code in your perl and using Coro can easily result in
|
||||||
four times speed increase for your programs. A parallel matrix
|
a two to four times speed increase for your programs. A parallel matrix
|
||||||
multiplication benchmark (very communication-intensive) runs over 300
|
multiplication benchmark (very communication-intensive) runs over 300
|
||||||
times faster on a single core than perls pseudo-threads on a quad core
|
times faster on a single core than perls pseudo-threads on a quad core
|
||||||
using all four cores.
|
using all four cores.
|
||||||
|
|
||||||
Coro achieves that by supporting multiple running interpreters that share
|
Coro achieves that by supporting multiple running interpreters that
|
||||||
data, which is especially useful to code pseudo-parallel processes and for
|
share data, which is especially useful to code pseudo-parallel processes
|
||||||
event-based programming, such as multiple HTTP-GET requests running
|
and for event-based programming, such as multiple HTTP-GET requests
|
||||||
concurrently. See Coro::AnyEvent to learn more on how to integrate Coro
|
running concurrently. See Coro::AnyEvent to learn more on how to
|
||||||
into an event-based environment.
|
integrate Coro into an event-based environment.
|
||||||
|
|
||||||
In this module, a thread is defined as "callchain + lexical variables +
|
In this module, a thread is defined as "callchain + lexical variables +
|
||||||
some package variables + C stack), that is, a thread has its own
|
some package variables + C stack), that is, a thread has its own
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
# ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||||
|
|
||||||
PRGNAM=perl-Coro
|
PRGNAM=perl-Coro
|
||||||
VERSION=${VERSION:-6.55}
|
VERSION=${VERSION:-6.57}
|
||||||
BUILD=${BUILD:-1}
|
BUILD=${BUILD:-1}
|
||||||
TAG=${TAG:-_SBo}
|
TAG=${TAG:-_SBo}
|
||||||
|
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
PRGNAM="perl-Coro"
|
PRGNAM="perl-Coro"
|
||||||
VERSION="6.55"
|
VERSION="6.57"
|
||||||
HOMEPAGE="https://metacpan.org/pod/Coro"
|
HOMEPAGE="https://metacpan.org/pod/Coro"
|
||||||
DOWNLOAD="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/Coro-6.55.tar.gz"
|
DOWNLOAD="https://cpan.metacpan.org/authors/id/M/ML/MLEHMANN/Coro-6.57.tar.gz"
|
||||||
MD5SUM="db97217f32ebcbc571ae8219cd08931d"
|
MD5SUM="fa5970a2a2f3df9d68d4369c7dde1a55"
|
||||||
DOWNLOAD_x86_64=""
|
DOWNLOAD_x86_64=""
|
||||||
MD5SUM_x86_64=""
|
MD5SUM_x86_64=""
|
||||||
REQUIRES="perl-EV perl-AnyEvent perl-common-sense perl-Guard perl-event"
|
REQUIRES="perl-EV perl-AnyEvent perl-common-sense perl-Guard perl-event"
|
||||||
|
|
Loading…
Reference in a new issue