diff options
author | gregor herrmann <gregoa@debian.org> | 2022-10-15 21:29:44 +0200 |
---|---|---|
committer | gregor herrmann <gregoa@debian.org> | 2022-10-15 21:29:44 +0200 |
commit | ed7968eb8d6384c0da064ce974d4124e0cafc3af (patch) | |
tree | 3dc3224320a11581b8688d9d0861d5e6b0c8dc4f | |
parent | 2199e042229a8663fe3e1901532eda7c50ab2774 (diff) | |
parent | d0d9d54f0466b8c620498dc0646518699a62d2d0 (diff) |
Update upstream source from tag 'upstream/1.881'
Update to upstream version '1.881'
with Debian dir b4a13b3ab87704ecf07016979e9b856a5c8f6b6e
41 files changed, 186 insertions, 173 deletions
@@ -1,6 +1,15 @@ Revision history for Perl module MCE. +1.881 Thu Oct 13 23:45:00 EST 2022 + + * Improved the private _parse_chunk_size function. For better + utilization of CPU cores in MCE::Grep, MCE::Map, and MCE::Stream, + processing small input sizes. + + Previously, chunk_size => 'auto' equals 2 minimally. + Starting with MCE v1.881, 'auto' equals 1 minimally. + 1.880 Mon Oct 10 04:00:00 EST 2022 * Improved reliability on the Windows platform. @@ -65,135 +65,135 @@ "provides" : { "MCE" : { "file" : "lib/MCE.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Candy" : { "file" : "lib/MCE/Candy.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Channel" : { "file" : "lib/MCE/Channel.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Channel::Mutex" : { "file" : "lib/MCE/Channel/Mutex.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Channel::MutexFast" : { "file" : "lib/MCE/Channel/MutexFast.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Channel::Simple" : { "file" : "lib/MCE/Channel/Simple.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Channel::SimpleFast" : { "file" : "lib/MCE/Channel/SimpleFast.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Channel::Threads" : { "file" : "lib/MCE/Channel/Threads.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Channel::ThreadsFast" : { "file" : "lib/MCE/Channel/ThreadsFast.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Child" : { "file" : "lib/MCE/Child.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Core::Input::Generator" : { "file" : "lib/MCE/Core/Input/Generator.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Core::Input::Handle" : { "file" : "lib/MCE/Core/Input/Handle.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Core::Input::Iterator" : { "file" : "lib/MCE/Core/Input/Iterator.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Core::Input::Request" : { "file" : "lib/MCE/Core/Input/Request.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Core::Input::Sequence" : { "file" : "lib/MCE/Core/Input/Sequence.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Core::Manager" : { "file" : "lib/MCE/Core/Manager.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Core::Validation" : { "file" : "lib/MCE/Core/Validation.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Core::Worker" : { "file" : "lib/MCE/Core/Worker.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Flow" : { "file" : "lib/MCE/Flow.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Grep" : { "file" : "lib/MCE/Grep.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Loop" : { "file" : "lib/MCE/Loop.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Map" : { "file" : "lib/MCE/Map.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Mutex" : { "file" : "lib/MCE/Mutex.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Mutex::Channel" : { "file" : "lib/MCE/Mutex/Channel.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Mutex::Channel2" : { "file" : "lib/MCE/Mutex/Channel2.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Mutex::Flock" : { "file" : "lib/MCE/Mutex/Flock.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Queue" : { "file" : "lib/MCE/Queue.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Relay" : { "file" : "lib/MCE/Relay.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Signal" : { "file" : "lib/MCE/Signal.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Step" : { "file" : "lib/MCE/Step.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Stream" : { "file" : "lib/MCE/Stream.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Subs" : { "file" : "lib/MCE/Subs.pm", - "version" : "1.880" + "version" : "1.881" }, "MCE::Util" : { "file" : "lib/MCE/Util.pm", - "version" : "1.880" + "version" : "1.881" } }, "release_status" : "stable", @@ -209,5 +209,5 @@ "url" : "https://github.com/marioroy/mce-perl.git" } }, - "version" : "1.880" + "version" : "1.881" } @@ -25,103 +25,103 @@ no_index: provides: MCE: file: lib/MCE.pm - version: '1.880' + version: '1.881' MCE::Candy: file: lib/MCE/Candy.pm - version: '1.880' + version: '1.881' MCE::Channel: file: lib/MCE/Channel.pm - version: '1.880' + version: '1.881' MCE::Channel::Mutex: file: lib/MCE/Channel/Mutex.pm - version: '1.880' + version: '1.881' MCE::Channel::MutexFast: file: lib/MCE/Channel/MutexFast.pm - version: '1.880' + version: '1.881' MCE::Channel::Simple: file: lib/MCE/Channel/Simple.pm - version: '1.880' + version: '1.881' MCE::Channel::SimpleFast: file: lib/MCE/Channel/SimpleFast.pm - version: '1.880' + version: '1.881' MCE::Channel::Threads: file: lib/MCE/Channel/Threads.pm - version: '1.880' + version: '1.881' MCE::Channel::ThreadsFast: file: lib/MCE/Channel/ThreadsFast.pm - version: '1.880' + version: '1.881' MCE::Child: file: lib/MCE/Child.pm - version: '1.880' + version: '1.881' MCE::Core::Input::Generator: file: lib/MCE/Core/Input/Generator.pm - version: '1.880' + version: '1.881' MCE::Core::Input::Handle: file: lib/MCE/Core/Input/Handle.pm - version: '1.880' + version: '1.881' MCE::Core::Input::Iterator: file: lib/MCE/Core/Input/Iterator.pm - version: '1.880' + version: '1.881' MCE::Core::Input::Request: file: lib/MCE/Core/Input/Request.pm - version: '1.880' + version: '1.881' MCE::Core::Input::Sequence: file: lib/MCE/Core/Input/Sequence.pm - version: '1.880' + version: '1.881' MCE::Core::Manager: file: lib/MCE/Core/Manager.pm - version: '1.880' + version: '1.881' MCE::Core::Validation: file: lib/MCE/Core/Validation.pm - version: '1.880' + version: '1.881' MCE::Core::Worker: file: lib/MCE/Core/Worker.pm - version: '1.880' + version: '1.881' MCE::Flow: file: lib/MCE/Flow.pm - version: '1.880' + version: '1.881' MCE::Grep: file: lib/MCE/Grep.pm - version: '1.880' + version: '1.881' MCE::Loop: file: lib/MCE/Loop.pm - version: '1.880' + version: '1.881' MCE::Map: file: lib/MCE/Map.pm - version: '1.880' + version: '1.881' MCE::Mutex: file: lib/MCE/Mutex.pm - version: '1.880' + version: '1.881' MCE::Mutex::Channel: file: lib/MCE/Mutex/Channel.pm - version: '1.880' + version: '1.881' MCE::Mutex::Channel2: file: lib/MCE/Mutex/Channel2.pm - version: '1.880' + version: '1.881' MCE::Mutex::Flock: file: lib/MCE/Mutex/Flock.pm - version: '1.880' + version: '1.881' MCE::Queue: file: lib/MCE/Queue.pm - version: '1.880' + version: '1.881' MCE::Relay: file: lib/MCE/Relay.pm - version: '1.880' + version: '1.881' MCE::Signal: file: lib/MCE/Signal.pm - version: '1.880' + version: '1.881' MCE::Step: file: lib/MCE/Step.pm - version: '1.880' + version: '1.881' MCE::Stream: file: lib/MCE/Stream.pm - version: '1.880' + version: '1.881' MCE::Subs: file: lib/MCE/Subs.pm - version: '1.880' + version: '1.881' MCE::Util: file: lib/MCE/Util.pm - version: '1.880' + version: '1.881' recommends: Sereal::Decoder: '3.015' Sereal::Encoder: '3.015' @@ -148,4 +148,4 @@ resources: homepage: https://github.com/marioroy/mce-perl license: https://dev.perl.org/licenses/ repository: https://github.com/marioroy/mce-perl.git -version: '1.880' +version: '1.881' diff --git a/Makefile.PL b/Makefile.PL index 1b3c241..d50229b 100644 --- a/Makefile.PL +++ b/Makefile.PL @@ -17,7 +17,7 @@ WriteMakefile( ABSTRACT => 'Many-Core Engine for Perl providing parallel processing capabilities', AUTHOR => 'Mario E. Roy <marioeroy AT gmail DOT com>', NAME => 'MCE', - VERSION => '1.880', + VERSION => '1.881', EXE_FILES => [ @exe_files ], @@ -68,135 +68,135 @@ WriteMakefile( 'provides' => { 'MCE' => { 'file' => 'lib/MCE.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Candy' => { 'file' => 'lib/MCE/Candy.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Channel' => { 'file' => 'lib/MCE/Channel.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Channel::Mutex' => { 'file' => 'lib/MCE/Channel/Mutex.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Channel::MutexFast' => { 'file' => 'lib/MCE/Channel/MutexFast.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Channel::Simple' => { 'file' => 'lib/MCE/Channel/Simple.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Channel::SimpleFast' => { 'file' => 'lib/MCE/Channel/SimpleFast.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Channel::Threads' => { 'file' => 'lib/MCE/Channel/Threads.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Channel::ThreadsFast' => { 'file' => 'lib/MCE/Channel/ThreadsFast.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Child' => { 'file' => 'lib/MCE/Child.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Core::Input::Generator' => { 'file' => 'lib/MCE/Core/Input/Generator.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Core::Input::Handle' => { 'file' => 'lib/MCE/Core/Input/Handle.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Core::Input::Iterator' => { 'file' => 'lib/MCE/Core/Input/Iterator.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Core::Input::Request' => { 'file' => 'lib/MCE/Core/Input/Request.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Core::Input::Sequence' => { 'file' => 'lib/MCE/Core/Input/Sequence.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Core::Manager' => { 'file' => 'lib/MCE/Core/Manager.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Core::Validation' => { 'file' => 'lib/MCE/Core/Validation.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Core::Worker' => { 'file' => 'lib/MCE/Core/Worker.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Flow' => { 'file' => 'lib/MCE/Flow.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Grep' => { 'file' => 'lib/MCE/Grep.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Loop' => { 'file' => 'lib/MCE/Loop.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Map' => { 'file' => 'lib/MCE/Map.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Mutex' => { 'file' => 'lib/MCE/Mutex.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Mutex::Channel' => { 'file' => 'lib/MCE/Mutex/Channel.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Mutex::Channel2' => { 'file' => 'lib/MCE/Mutex/Channel2.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Mutex::Flock' => { 'file' => 'lib/MCE/Mutex/Flock.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Queue' => { 'file' => 'lib/MCE/Queue.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Relay' => { 'file' => 'lib/MCE/Relay.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Signal' => { 'file' => 'lib/MCE/Signal.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Step' => { 'file' => 'lib/MCE/Step.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Stream' => { 'file' => 'lib/MCE/Stream.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Subs' => { 'file' => 'lib/MCE/Subs.pm', - 'version' => '1.880' + 'version' => '1.881' }, 'MCE::Util' => { 'file' => 'lib/MCE/Util.pm', - 'version' => '1.880' + 'version' => '1.881' } }, 'prereqs' => { @@ -1,6 +1,6 @@ ## Many-Core Engine for Perl -This document describes MCE version 1.880. +This document describes MCE version 1.881. Many-Core Engine (MCE) for Perl helps enable a new level of performance by maximizing all available cores. @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) ## no critic (Subroutines::ProhibitSubroutinePrototypes) diff --git a/lib/MCE.pod b/lib/MCE.pod index 101d1d2..e0ef291 100644 --- a/lib/MCE.pod +++ b/lib/MCE.pod @@ -5,7 +5,7 @@ MCE - Many-Core Engine for Perl providing parallel processing capabilities =head1 VERSION -This document describes MCE version 1.880 +This document describes MCE version 1.881 Many-Core Engine (MCE) for Perl helps enable a new level of performance by maximizing all available cores. diff --git a/lib/MCE/Candy.pm b/lib/MCE/Candy.pm index 86e2f80..20f101b 100644 --- a/lib/MCE/Candy.pm +++ b/lib/MCE/Candy.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; our @CARP_NOT = qw( MCE ); @@ -240,7 +240,7 @@ MCE::Candy - Sugar methods and output iterators =head1 VERSION -This document describes MCE::Candy version 1.880 +This document describes MCE::Candy version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Channel.pm b/lib/MCE/Channel.pm index 53d403f..633a886 100644 --- a/lib/MCE/Channel.pm +++ b/lib/MCE/Channel.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( uninitialized once ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) ## no critic (TestingAndDebugging::ProhibitNoStrict) @@ -131,7 +131,7 @@ MCE::Channel - Queue-like and two-way communication capability =head1 VERSION -This document describes MCE::Channel version 1.880 +This document describes MCE::Channel version 1.881 =head1 SYNOPSIS diff --git a/lib/MCE/Channel/Mutex.pm b/lib/MCE/Channel/Mutex.pm index 861cea2..75e4674 100644 --- a/lib/MCE/Channel/Mutex.pm +++ b/lib/MCE/Channel/Mutex.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( uninitialized once ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; use base 'MCE::Channel'; use MCE::Mutex (); @@ -304,7 +304,7 @@ MCE::Channel::Mutex - Channel for producer(s) and many consumers =head1 VERSION -This document describes MCE::Channel::Mutex version 1.880 +This document describes MCE::Channel::Mutex version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Channel/MutexFast.pm b/lib/MCE/Channel/MutexFast.pm index 316806e..6b76d92 100644 --- a/lib/MCE/Channel/MutexFast.pm +++ b/lib/MCE/Channel/MutexFast.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( uninitialized once ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; use base 'MCE::Channel'; use MCE::Mutex (); @@ -308,7 +308,7 @@ MCE::Channel::MutexFast - Fast channel for producer(s) and many consumers =head1 VERSION -This document describes MCE::Channel::MutexFast version 1.880 +This document describes MCE::Channel::MutexFast version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Channel/Simple.pm b/lib/MCE/Channel/Simple.pm index 59b4c69..b11ab3a 100644 --- a/lib/MCE/Channel/Simple.pm +++ b/lib/MCE/Channel/Simple.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( uninitialized once ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; use base 'MCE::Channel'; @@ -300,7 +300,7 @@ MCE::Channel::Simple - Channel tuned for one producer and one consumer =head1 VERSION -This document describes MCE::Channel::Simple version 1.880 +This document describes MCE::Channel::Simple version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Channel/SimpleFast.pm b/lib/MCE/Channel/SimpleFast.pm index 26c7a02..4862094 100644 --- a/lib/MCE/Channel/SimpleFast.pm +++ b/lib/MCE/Channel/SimpleFast.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( uninitialized once ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; use base 'MCE::Channel'; @@ -308,7 +308,7 @@ MCE::Channel::SimpleFast - Fast channel tuned for one producer and one consumer =head1 VERSION -This document describes MCE::Channel::SimpleFast version 1.880 +This document describes MCE::Channel::SimpleFast version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Channel/Threads.pm b/lib/MCE/Channel/Threads.pm index 1d354b6..9c39b4b 100644 --- a/lib/MCE/Channel/Threads.pm +++ b/lib/MCE/Channel/Threads.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( uninitialized once ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; use threads; use threads::shared; @@ -320,7 +320,7 @@ MCE::Channel::Threads - Channel for producer(s) and many consumers =head1 VERSION -This document describes MCE::Channel::Threads version 1.880 +This document describes MCE::Channel::Threads version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Channel/ThreadsFast.pm b/lib/MCE/Channel/ThreadsFast.pm index 7c19499..49a2d1e 100644 --- a/lib/MCE/Channel/ThreadsFast.pm +++ b/lib/MCE/Channel/ThreadsFast.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( uninitialized once ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; use threads; use threads::shared; @@ -326,7 +326,7 @@ MCE::Channel::ThreadsFast - Fast channel for producer(s) and many consumers =head1 VERSION -This document describes MCE::Channel::ThreadsFast version 1.880 +This document describes MCE::Channel::ThreadsFast version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Child.pm b/lib/MCE/Child.pm index 98036b5..2b0397d 100644 --- a/lib/MCE/Child.pm +++ b/lib/MCE/Child.pm @@ -11,7 +11,7 @@ no warnings qw( threads recursion uninitialized once redefine ); package MCE::Child; -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) ## no critic (Subroutines::ProhibitExplicitReturnUndef) @@ -985,7 +985,7 @@ MCE::Child - A threads-like parallelization module compatible with Perl 5.8 =head1 VERSION -This document describes MCE::Child version 1.880 +This document describes MCE::Child version 1.881 =head1 SYNOPSIS diff --git a/lib/MCE/Core.pod b/lib/MCE/Core.pod index a24dd62..6be8374 100644 --- a/lib/MCE/Core.pod +++ b/lib/MCE/Core.pod @@ -5,7 +5,7 @@ MCE::Core - Documentation describing the core MCE API =head1 VERSION -This document describes MCE::Core version 1.880 +This document describes MCE::Core version 1.881 =head1 SYNOPSIS diff --git a/lib/MCE/Core/Input/Generator.pm b/lib/MCE/Core/Input/Generator.pm index a42c38b..718aea8 100644 --- a/lib/MCE/Core/Input/Generator.pm +++ b/lib/MCE/Core/Input/Generator.pm @@ -15,7 +15,7 @@ package MCE::Core::Input::Generator; use strict; use warnings; -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## Items below are folded into MCE. @@ -220,7 +220,7 @@ MCE::Core::Input::Generator - Sequence of numbers (for task_id > 0) =head1 VERSION -This document describes MCE::Core::Input::Generator version 1.880 +This document describes MCE::Core::Input::Generator version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Core/Input/Handle.pm b/lib/MCE/Core/Input/Handle.pm index 1636411..41e9a2d 100644 --- a/lib/MCE/Core/Input/Handle.pm +++ b/lib/MCE/Core/Input/Handle.pm @@ -14,7 +14,7 @@ package MCE::Core::Input::Handle; use strict; use warnings; -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## Items below are folded into MCE. @@ -283,7 +283,7 @@ MCE::Core::Input::Handle - File path and Scalar reference input reader =head1 VERSION -This document describes MCE::Core::Input::Handle version 1.880 +This document describes MCE::Core::Input::Handle version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Core/Input/Iterator.pm b/lib/MCE/Core/Input/Iterator.pm index b0666e5..5ff2047 100644 --- a/lib/MCE/Core/Input/Iterator.pm +++ b/lib/MCE/Core/Input/Iterator.pm @@ -14,7 +14,7 @@ package MCE::Core::Input::Iterator; use strict; use warnings; -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## Items below are folded into MCE. @@ -128,7 +128,7 @@ MCE::Core::Input::Iterator - Iterator reader =head1 VERSION -This document describes MCE::Core::Input::Iterator version 1.880 +This document describes MCE::Core::Input::Iterator version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Core/Input/Request.pm b/lib/MCE/Core/Input/Request.pm index 3fb88dc..451ba2b 100644 --- a/lib/MCE/Core/Input/Request.pm +++ b/lib/MCE/Core/Input/Request.pm @@ -14,7 +14,7 @@ package MCE::Core::Input::Request; use strict; use warnings; -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## Items below are folded into MCE. @@ -199,7 +199,7 @@ MCE::Core::Input::Request - Array reference and Glob reference input reader =head1 VERSION -This document describes MCE::Core::Input::Request version 1.880 +This document describes MCE::Core::Input::Request version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Core/Input/Sequence.pm b/lib/MCE/Core/Input/Sequence.pm index 4db1460..5125c1f 100644 --- a/lib/MCE/Core/Input/Sequence.pm +++ b/lib/MCE/Core/Input/Sequence.pm @@ -14,7 +14,7 @@ package MCE::Core::Input::Sequence; use strict; use warnings; -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## Items below are folded into MCE. @@ -234,7 +234,7 @@ MCE::Core::Input::Sequence - Sequence of numbers (for task_id == 0) =head1 VERSION -This document describes MCE::Core::Input::Sequence version 1.880 +This document describes MCE::Core::Input::Sequence version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Core/Manager.pm b/lib/MCE/Core/Manager.pm index 1aa0d8c..7392704 100644 --- a/lib/MCE/Core/Manager.pm +++ b/lib/MCE/Core/Manager.pm @@ -14,7 +14,7 @@ package MCE::Core::Manager; use strict; use warnings; -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) ## no critic (TestingAndDebugging::ProhibitNoStrict) @@ -1041,7 +1041,7 @@ MCE::Core::Manager - Core methods for the manager process =head1 VERSION -This document describes MCE::Core::Manager version 1.880 +This document describes MCE::Core::Manager version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Core/Validation.pm b/lib/MCE/Core/Validation.pm index d85d315..95b9685 100644 --- a/lib/MCE/Core/Validation.pm +++ b/lib/MCE/Core/Validation.pm @@ -14,7 +14,7 @@ package MCE::Core::Validation; use strict; use warnings; -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## Items below are folded into MCE. @@ -320,13 +320,17 @@ sub _parse_chunk_size { if ($_size) { $_chunk_size = int($_size / $_max_workers / 24 + 0.5); $_chunk_size = 5_242_880 if $_chunk_size > 5_242_880; # 5M - $_chunk_size = 2 if $_chunk_size <= 8192; + if ($_chunk_size <= 8192) { + $_chunk_size = (caller() =~ /^MCE::(?:Grep|Map|Stream)/) ? 1 : 2; + } } } else { $_chunk_size = int($_size / $_max_workers / 24 + 0.5); $_chunk_size = 8000 if $_chunk_size > 8000; - $_chunk_size = 2 if $_chunk_size < 2; + if ($_chunk_size < 2) { + $_chunk_size = (caller() =~ /^MCE::(?:Grep|Map|Stream)/) ? 1 : 2; + } } } @@ -398,7 +402,7 @@ MCE::Core::Validation - Core validation methods for Many-Core Engine =head1 VERSION -This document describes MCE::Core::Validation version 1.880 +This document describes MCE::Core::Validation version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Core/Worker.pm b/lib/MCE/Core/Worker.pm index abc5b24..c75667b 100644 --- a/lib/MCE/Core/Worker.pm +++ b/lib/MCE/Core/Worker.pm @@ -14,7 +14,7 @@ package MCE::Core::Worker; use strict; use warnings; -our $VERSION = '1.880'; +our $VERSION = '1.881'; my $_tid = $INC{'threads.pm'} ? threads->tid() : 0; @@ -716,7 +716,7 @@ MCE::Core::Worker - Core methods for the worker process =head1 VERSION -This document describes MCE::Core::Worker version 1.880 +This document describes MCE::Core::Worker version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Examples.pod b/lib/MCE/Examples.pod index 186afa1..7e8ecd3 100644 --- a/lib/MCE/Examples.pod +++ b/lib/MCE/Examples.pod @@ -5,7 +5,7 @@ MCE::Examples - Various examples and demonstrations =head1 VERSION -This document describes MCE::Examples version 1.880 +This document describes MCE::Examples version 1.881 =head1 INCLUDED WITH THE DISTRIBUTION diff --git a/lib/MCE/Flow.pm b/lib/MCE/Flow.pm index 77d64d6..97de1bc 100644 --- a/lib/MCE/Flow.pm +++ b/lib/MCE/Flow.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) ## no critic (Subroutines::ProhibitSubroutinePrototypes) @@ -479,7 +479,7 @@ MCE::Flow - Parallel flow model for building creative applications =head1 VERSION -This document describes MCE::Flow version 1.880 +This document describes MCE::Flow version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Grep.pm b/lib/MCE/Grep.pm index 61ae85e..c3e2018 100644 --- a/lib/MCE/Grep.pm +++ b/lib/MCE/Grep.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) ## no critic (Subroutines::ProhibitSubroutinePrototypes) @@ -434,7 +434,7 @@ MCE::Grep - Parallel grep model similar to the native grep function =head1 VERSION -This document describes MCE::Grep version 1.880 +This document describes MCE::Grep version 1.881 =head1 SYNOPSIS diff --git a/lib/MCE/Loop.pm b/lib/MCE/Loop.pm index bd4df96..f91a85e 100644 --- a/lib/MCE/Loop.pm +++ b/lib/MCE/Loop.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) ## no critic (Subroutines::ProhibitSubroutinePrototypes) @@ -349,7 +349,7 @@ MCE::Loop - MCE model for building parallel loops =head1 VERSION -This document describes MCE::Loop version 1.880 +This document describes MCE::Loop version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Map.pm b/lib/MCE/Map.pm index a2a6fbf..173ed8d 100644 --- a/lib/MCE/Map.pm +++ b/lib/MCE/Map.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) ## no critic (Subroutines::ProhibitSubroutinePrototypes) @@ -434,7 +434,7 @@ MCE::Map - Parallel map model similar to the native map function =head1 VERSION -This document describes MCE::Map version 1.880 +This document describes MCE::Map version 1.881 =head1 SYNOPSIS diff --git a/lib/MCE/Mutex.pm b/lib/MCE/Mutex.pm index f7762a8..fe5d4ee 100644 --- a/lib/MCE/Mutex.pm +++ b/lib/MCE/Mutex.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) ## no critic (TestingAndDebugging::ProhibitNoStrict) @@ -64,7 +64,7 @@ MCE::Mutex - Locking for Many-Core Engine =head1 VERSION -This document describes MCE::Mutex version 1.880 +This document describes MCE::Mutex version 1.881 =head1 SYNOPSIS diff --git a/lib/MCE/Mutex/Channel.pm b/lib/MCE/Mutex/Channel.pm index fd3aadf..176fb76 100644 --- a/lib/MCE/Mutex/Channel.pm +++ b/lib/MCE/Mutex/Channel.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized once ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; use base 'MCE::Mutex'; use MCE::Util (); @@ -169,7 +169,7 @@ MCE::Mutex::Channel - Mutex locking via a pipe or socket =head1 VERSION -This document describes MCE::Mutex::Channel version 1.880 +This document describes MCE::Mutex::Channel version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Mutex/Channel2.pm b/lib/MCE/Mutex/Channel2.pm index 6742795..769304f 100644 --- a/lib/MCE/Mutex/Channel2.pm +++ b/lib/MCE/Mutex/Channel2.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized once ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; use base 'MCE::Mutex::Channel'; use MCE::Util (); @@ -135,7 +135,7 @@ MCE::Mutex::Channel2 - Provides two mutexes using a single channel =head1 VERSION -This document describes MCE::Mutex::Channel2 version 1.880 +This document describes MCE::Mutex::Channel2 version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Mutex/Flock.pm b/lib/MCE/Mutex/Flock.pm index 0691b9b..fc3b458 100644 --- a/lib/MCE/Mutex/Flock.pm +++ b/lib/MCE/Mutex/Flock.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized once ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; use base 'MCE::Mutex'; use Fcntl ':flock'; @@ -201,7 +201,7 @@ MCE::Mutex::Flock - Mutex locking via Fcntl =head1 VERSION -This document describes MCE::Mutex::Flock version 1.880 +This document describes MCE::Mutex::Flock version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Queue.pm b/lib/MCE/Queue.pm index a86aec5..f8df110 100644 --- a/lib/MCE/Queue.pm +++ b/lib/MCE/Queue.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (Subroutines::ProhibitExplicitReturnUndef) ## no critic (TestingAndDebugging::ProhibitNoStrict) @@ -1396,7 +1396,7 @@ MCE::Queue - Hybrid (normal and priority) queues =head1 VERSION -This document describes MCE::Queue version 1.880 +This document describes MCE::Queue version 1.881 =head1 SYNOPSIS diff --git a/lib/MCE/Relay.pm b/lib/MCE/Relay.pm index 0c82694..8bcd8cf 100644 --- a/lib/MCE/Relay.pm +++ b/lib/MCE/Relay.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized numeric ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (Subroutines::ProhibitSubroutinePrototypes) @@ -368,7 +368,7 @@ MCE::Relay - Extends Many-Core Engine with relay capabilities =head1 VERSION -This document describes MCE::Relay version 1.880 +This document describes MCE::Relay version 1.881 =head1 SYNOPSIS diff --git a/lib/MCE/Signal.pm b/lib/MCE/Signal.pm index 8b8fe41..af00212 100644 --- a/lib/MCE/Signal.pm +++ b/lib/MCE/Signal.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized once ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) @@ -438,7 +438,7 @@ MCE::Signal - Temporary directory creation/cleanup and signal handling =head1 VERSION -This document describes MCE::Signal version 1.880 +This document describes MCE::Signal version 1.881 =head1 SYNOPSIS diff --git a/lib/MCE/Step.pm b/lib/MCE/Step.pm index bc9d745..2ced057 100644 --- a/lib/MCE/Step.pm +++ b/lib/MCE/Step.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) ## no critic (Subroutines::ProhibitSubroutinePrototypes) @@ -697,7 +697,7 @@ MCE::Step - Parallel step model for building creative steps =head1 VERSION -This document describes MCE::Step version 1.880 +This document describes MCE::Step version 1.881 =head1 DESCRIPTION diff --git a/lib/MCE/Stream.pm b/lib/MCE/Stream.pm index ffa3be1..f0d7697 100644 --- a/lib/MCE/Stream.pm +++ b/lib/MCE/Stream.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) ## no critic (Subroutines::ProhibitSubroutinePrototypes) @@ -671,7 +671,7 @@ MCE::Stream - Parallel stream model for chaining multiple maps and greps =head1 VERSION -This document describes MCE::Stream version 1.880 +This document describes MCE::Stream version 1.881 =head1 SYNOPSIS diff --git a/lib/MCE/Subs.pm b/lib/MCE/Subs.pm index dd643f4..925e626 100644 --- a/lib/MCE/Subs.pm +++ b/lib/MCE/Subs.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (Subroutines::ProhibitSubroutinePrototypes) ## no critic (TestingAndDebugging::ProhibitNoStrict) @@ -204,7 +204,7 @@ MCE::Subs - Exports functions mapped directly to MCE methods =head1 VERSION -This document describes MCE::Subs version 1.880 +This document describes MCE::Subs version 1.881 =head1 SYNOPSIS diff --git a/lib/MCE/Util.pm b/lib/MCE/Util.pm index f37af3b..7d5f2c4 100644 --- a/lib/MCE/Util.pm +++ b/lib/MCE/Util.pm @@ -11,7 +11,7 @@ use warnings; no warnings qw( threads recursion uninitialized numeric ); -our $VERSION = '1.880'; +our $VERSION = '1.881'; ## no critic (BuiltinFunctions::ProhibitStringyEval) @@ -432,7 +432,7 @@ MCE::Util - Utility functions =head1 VERSION -This document describes MCE::Util version 1.880 +This document describes MCE::Util version 1.881 =head1 SYNOPSIS |