On 9/8/2015 2:08 PM, Stephen J. Turnbull wrote:
R. David Murray writes:
> On Tue, 08 Sep 2015 10:12:37 -0400, Gary Robinson <gary...@me.com> wrote:
> > 2) Have a mode where a particular data structure is not reference
> > counted or garbage collected.
>
> This sounds kind of like what Trent did in PyParallel (in a more generic
> way).
Except Gary has a large persistent data structure, and Trent's only
rule is "don't persist objects you want to operate on in parallel."
The similarity may be purely superficial, though.
That rule, which includes not modifying persistent data, is only for the
parallel threads. In his wikipedia search example, the main thread loads
60 GB of data (and perhaps occasionally updates it) while multiple
parallel threads, running of multiple cores, search the persistent data
like busy little bees.
--
Terry Jan Reedy
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe:
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com