On Tue, 09 Aug 2011 20:37:04 +, Ali Çehreli wrote:
>> I wonder if I could:
>> Create a thread (task)
>> Read bytes directly into the tasks' thread local storage Execute the
>> thread
>
> I don't know what copies happen behind the scenes in the following code,
> but std.paralleism is great whe
On Mon, 08 Aug 2011 12:17:28 -0600, Kai Meyer wrote:
> I am playing with threading, and I am doing something like this:
> file.rawRead(bytes);
> auto tmpTask = task!do_something(bytes.idup);
> task_pool.put(tmpTask);
> Is there a way to avoid the idup (or can somebody ex
On Tue, 09 Aug 2011 12:59:46 -0400, Kai Meyer wrote:
On 08/09/2011 10:27 AM, Steven Schveighoffer wrote:
On Tue, 09 Aug 2011 11:36:13 -0400, Kai Meyer wrote:
On 08/08/2011 01:38 PM, Steven Schveighoffer wrote:
On Mon, 08 Aug 2011 14:17:28 -0400, Kai Meyer
wrote:
I am playing with thre
On 08/09/2011 10:27 AM, Steven Schveighoffer wrote:
On Tue, 09 Aug 2011 11:36:13 -0400, Kai Meyer wrote:
On 08/08/2011 01:38 PM, Steven Schveighoffer wrote:
On Mon, 08 Aug 2011 14:17:28 -0400, Kai Meyer wrote:
I am playing with threading, and I am doing something like this:
file.rawRead(by
On Tue, 09 Aug 2011 11:36:13 -0400, Kai Meyer wrote:
On 08/08/2011 01:38 PM, Steven Schveighoffer wrote:
On Mon, 08 Aug 2011 14:17:28 -0400, Kai Meyer wrote:
I am playing with threading, and I am doing something like this:
file.rawRead(bytes);
auto tmpTask = task!do_something(bytes.idup);
t
On 08/08/2011 01:38 PM, Steven Schveighoffer wrote:
On Mon, 08 Aug 2011 14:17:28 -0400, Kai Meyer wrote:
I am playing with threading, and I am doing something like this:
file.rawRead(bytes);
auto tmpTask = task!do_something(bytes.idup);
task_pool.put(tmpTask);
Is there a way to avoid the idup
On Mon, 08 Aug 2011 14:17:28 -0400, Kai Meyer wrote:
I am playing with threading, and I am doing something like this:
file.rawRead(bytes);
auto tmpTask = task!do_something(bytes.idup);
task_pool.put(tmpTask);
Is there a way to avoid the idup (or can somebody explain w
I am playing with threading, and I am doing something like this:
file.rawRead(bytes);
auto tmpTask = task!do_something(bytes.idup);
task_pool.put(tmpTask);
Is there a way to avoid the idup (or can somebody explain why idup here
is not expensive?)
If the logic above is ex