Skip Menu |

This queue is for tickets about the Cache-FastMmap CPAN distribution.

Report information
The Basics
Id: 27050
Status: rejected
Priority: 0/
Queue: Cache-FastMmap

People
Owner: Nobody in particular
Requestors: cpan [...] robm.fastmail.fm
Cc: melazyboy [...] gmail.com
AdminCc:

Bug Information
Severity: Wishlist
Broken in: 1.14
Fixed in: (no value)



CC: EvanCarroll <melazyboy [...] gmail.com>
Subject: Cache::FastMmap doesn't support threads
Cache::FastMmap does not support threads. From 1.15 onwards there's a CLONE method which just does a die to make this clear. Previously there would be strange crashes. I don't consider this a high priority for a couple of reasons 1. If you're using threads, then you can just use shared variables to communicate between threads anyway 2. If you're using mod_perl2 in apache2, then the standard forking model is better than the perl threads model anyway. In perl, whenever you create a new thread, the interpreter has to manually clone all non-shared perl objects, an expensive operation. In a forking model, it's up to the OS to do the copying and it can do it in a lazy "copy-on-write" way which is much more efficient. I'm not planning on fixing this, but if someone provides a patch that does, I'll consider including it.