in reply to Multithreading How do I share hash of hash of arrays

What are the expected sizes of the data structures? It may easily be the case that the right place for the data is a database, not an ad hoc, shared, frail data structure.

Jenda
Enoch was right!
Enjoy the last years of Rome.

  • Comment on Re: Multithreading How do I share hash of hash of arrays

Replies are listed 'Best First'.
Re^2: Multithreading How do I share hash of hash of arrays
by BrowserUk (Patriarch) on Jan 24, 2015 at 01:41 UTC
    What are the expected sizes of the data structures? It may easily be the case that the right place for the data is a database,

    Size is the wrong criteria here.

    A large, shared data structure will out-perform a "database" -- even an in-memory DB -- if the preponderance of accesses are read-only.

    not an ad hoc, shared, frail data structure

    Why does a (usually considered, "very reliable"), Perl data-structure, suddenly become "unreliable", because it is shared?


    With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
    Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
    "Science is about questioning the status quo. Questioning authority". I'm with torvalds on this
    In the absence of evidence, opinion is indistinguishable from prejudice. Agile (and TDD) debunked

      When you attempt to update it. It's easy to forget a lock or (in case of a deep structure) add something that's not shared.

      Size is one of the criteria. Once it all doesn't fit in memory ... In either case with so little information, we can just give suggestions.

      Jenda
      Enoch was right!
      Enjoy the last years of Rome.