in reply to Re^2: Getting started with MCE (the Many-Core Engine)
in thread Getting started with MCE (the Many-Core Engine)
incrementing strings perl-style
You mean, as in perlop, string
matches the pattern /^[a-zA-Z]*[0-9]*\z/, the increment is done as a string, preserving each character within its range, with carry? What an unusual and interesting task. What's the context? And string is huge enough for parallelization overhead to pay off? Off the top of my head, split the string into more or less equal substrings (their number equal to number of workers), guaranteed not to carry when incremented required number of times -- or, find indices within original, then feed the data to MCE::Map, then concatenate the output :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Getting started with MCE (the Many-Core Engine)
by Anonymous Monk on Jun 12, 2018 at 17:45 UTC |