On Wed, 2005-12-07 at 14:42 -0200, Fredrik Lindmark wrote: > I could actually make the tree in filestructure and let the leafs be > isolated files i guess.
That's what I was going to recommend, but as Cache::FastMmap entries. It will perform very well. > but its still far from the perl local memory > read/write performance. Yes, but how fast does it really have to be? It may be worth having the access time be slower in order to run 100 processes instead of one. I think your threaded cache idea is interesting and might work (and if it does, please tell us about it on the list!), but I consider it a lot more risky than a multi-process approach with Cache::FastMmap. Another (fairly risky) alternative is to make a non-blocking single-threaded daemon that keeps the cache in memory and handles these requests. You can look at POE as a starting point. But the downside is that this is tricky code to write and any DBI calls from that process will be blocking calls. - Perrin