On Fri, Sep 13, 2013, at 01:19 AM, Tom Breton (Tehom) wrote:
> AFAICT there is no good reason for it to do that.  It doesn't actually
> keep the data between sessions.  It struck me as an expensive substitute
> for std::map.

I should think comes from the former two-process architecture (sequencer
and GUI) in which we used shared memory blocks to pass data from one
process to the other. For no very compelling reason, we happened to use
file-backed shared memory (mmap'd files). Offloading storage space from
RAM to disk is not part of the deal, because these files are all mapped
into RAM anyway.

There is no good reason to use this sort of structure now, except that
the code was there already and refactoring was easier than rewriting.
This way at least concurrent access code is localised and the necessary
locking is tolerably clear (since the structure is shared between
threads).


Chris

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk
_______________________________________________
Rosegarden-devel mailing list
Rosegarden-devel@lists.sourceforge.net - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-devel

Reply via email to