2010/12/5 Torsten Förtsch :
> I rather think you are asking if an event driven or thread based MPM (like the
> event-MPM) can improve your application.
>
Thanks Torsten.
Yep, I did mean if the event driven MPM as event-MPM can improve the
performance of modperl application.
For threads I never u
Hi list,
Apache 2.2 supports the epoll event driver.
Does epoll have any performance improvement to mod_perl application?
Thanks.
2010/12/2 Torsten Förtsch :
> 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
On Thu, Dec 2, 2010 at 9:39 PM, Hendrik Schumacher wrote:
>
> "In the perl file that holds your handler" means your perl package file.
> Sounds more difficult as it was meant. The important thing is that the
> variable has to be declared on package level, not inside a sub routine.
>
>
AH thanks
2010/12/2 Torsten Förtsch :
>
> 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
On Thu, Dec 2, 2010 at 5:58 PM, Hendrik Schumacher wrote:
>
> In the perl file that holds your handler declare a variable on module level:
>
> my $qqwry = undef;
>
> In the handler instantiate the object if $qqwry is undefined:
>
> if (not $qqwry)
> {
> $qqwry = IP::QQWry->new('QQWry.Dat');
> }
On Thu, Dec 2, 2010 at 3:38 AM, Mithun Bhattacharya wrote:
> Can you confirm the error you are encountering using your current method ?
>
> I would like to understand what you are trying to achieve by having a global
> file handle - do you want to have modular code or does the content of the
> f
Hello,
I want to pre-open files in apache's processes.
So every modperl handlers will use the file handle directly, instead
of re-openning the files each time when the requesting is coming.
Currently I do it with:
package Fileopen;
use strict;
require Exporter;
our @ISA = qw(Exporter);
our @EXP