in reply to Re: Sharing large data structures between threads
in thread Sharing large data structures between threads
The Windows memory-manager is known to be quite “lazy” and sometimes this characteristic produces memory-consumption that is quite larger than you intuitively suppose it should be.
My original problems started with "Out of memory" errors caused by Perl having eaten its 32-bit address space... Yes, I did set the thread stack_size ages ago.
Would it be possible, for example, to delegate one thread that actually owns the data-structure, and that provides information about it to the other processes on-request?
Yes, I tried this. The results were not as good as I expected. See a few post up.
I have now been working on using HTTP::Async to reduce the number of threads. After several fixes to HTTP::Async itself, I am starting to see improvement. While I am pretty happy with the results, I do regret the additinal layer of complexity I had to incorporate into my script.
To BrowserUk: I fully appreciate your comments but I don't think it would be fruitful to discuss the application design here. For starters, if starting ground-up now, I would most certainly do many things differently. :-)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Sharing large data structures between threads
by locked_user sundialsvc4 (Abbot) on Mar 10, 2011 at 13:19 UTC |