Re: How to resume iteration from previous point in associative array

2014-02-19 Thread Tarman
@bearophile: Thanks for your suggestion! Yes we've tried this but unfortunately the performance doesn't work for us, maybe because all our CPUs are quite saturated. @simendsjo: Thanks also for your suggestion, we are using tasks and yield in our code but in this case we felt that using it j

Re: How to resume iteration from previous point in associative array

2014-02-19 Thread Tarman
I guess what might work here is to allow some kind of argument to "byKey" that will let us resume so maybe something like: foreach (item; massiveAssociativeArray.byKey(indexOfKeyToStartFrom)) { } If something like this isn't possible, then would one of our engineers be able to submit a patch

How to resume iteration from previous point in associative array

2014-02-19 Thread Tarman
Hi, We're doing some "super computing" "big data" style stuff with D. We have a system where we're comparing associative arrays with billions of entries. However in this system we need to fairly consider possible solutions for many "units" at a time within a single thread. So we'd like to.