in reply to Re: threads::shared seems to kill performance
in thread threads::shared seems to kill performance
Thank you. I considered not-sharing, but that would effectively mean each thread would be setup with a copy of the original 240MB array, would it not?
I was afraid this would quickly kill my memory, but thinking about it now, isn't there a chance this would be copy on write only? And thus even 1000 threads would (considering I only do reads) still only use 240MBs of memory?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: threads::shared seems to kill performance
by Preceptor (Deacon) on Jul 18, 2013 at 08:16 UTC |