[prev in list] [next in list] [prev in thread] [next in thread]
List: apache-modperl
Subject: Re: How to pre-open files in apache's processes
From: Xiao Lan <practicalperl () gmail ! com>
Date: 2010-12-03 1:34:12
Message-ID: AANLkTinVUEUWvR9N8R_TJcnD9L9-DOHHWHC_E4Q4_5Gi () mail ! gmail ! com
[Download RAW message or body]
2010/12/2 Torsten Förtsch <torsten.foertsch@gmx.net>:
> On Thursday, December 02, 2010 14:26:36 Xiao Lan wrote:
>> > But, looking at the module I think it can be slow because it relies
>> > heavily on seek(). A better approach would be to mmap() the file. In
>> > perl it would look then like a big string. My favourite tool for that is
>> > File::Map.
>>
>> OK thanks for this info. I will take a look at File::Map.
>
> If I were you, I'd really consider to convert the database into an MMapDB, see
> http://search.cpan.org/perldoc?MMapDB
>
Yup that's a good idea.
But I dont know how to convert the original database to MMapDB. :-)
Thanks.
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic