Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

Re^3: thread-safe mmap module ?

by kennethk (Abbot)
on Feb 21, 2009 at 22:49 UTC ( #745572=note: print w/replies, xml ) Need Help??

in reply to Re^2: thread-safe mmap module ?
in thread thread-safe mmap module ?

Another result that came up on that page is Cache::FastMmap::WithWin32, which "is a fork of Cache::FastMmap by Rob Mueller to include the Win32 port by Ash Berlin". Once again, never used them, but maybe this would fit your bill?

Replies are listed 'Best First'.
Re^4: thread-safe mmap module ?
by jdd (Acolyte) on Feb 21, 2009 at 22:55 UTC
    You are hitting exactly the reason why I opened this node (smiles) - If I put Cache::FastMmap::WithWin32 in the apache I'll hit this piece of code from the module:
    sub CLONE {
      die "Cache::FastMmap::WithWin32 does not support threads sorry";
    Damned I said ! Can't find a win32 thread-safe mmap alternative since then.

      Let's see if I can come up with something you don't already know this time...

      The issue with support on Cache::FastMmap is likely that it uses unsupported-on-Windows C-code to handle file locking/unlocking. In the "Modules like this" section of the documentation, it references Cache::Mmap, which is a pure Perl solution, and thus should respect (to the extent possible) Win32 behaviors. A quick glance at the source suggests it should be fine with threading.

        Yep - googling on it I see that Cache:Mmap might work, and if not IPC::Mmap::Win32 name suggests it will -; I'll give it a try asap, crossing fingers about performance.

        Thanks to all of you !

Log In?

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://745572]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (4)
As of 2022-01-27 20:10 GMT
Find Nodes?
    Voting Booth?
    In 2022, my preferred method to securely store passwords is:

    Results (71 votes). Check out past polls.