At 02:21 PM 7/31/02 +0200, Andreas Bourges wrote:
>On Wednesday 31 July 2002 13:38, Elizabeth Mattijsen wrote:
> > Maybe if we reduce the number of array elements?
> > push @packet_array, "$remotehost\0$newmsg";
> > and do a split( "\0", ... ) on the other end?
>
>
>hm - works fine for a while but then the inet_aton() gets wrong input. I have
>s.th. like a
>
>$buffer=shift(@packet_array)
>if (defined($buffer)) {
> ($address, $newmsg) = split ("::", $buffer)
> ... inet_aton($address) ...
>...
>looks like I'm getting s.th. off the array, which isn't what I expect :-(
Hmmm... is the '::' a good thing to split on? Can it occur in $address or
$newmsg?
>... But
>besides that - doesn't improve the performance very much.
Well, it does improve I guess, but not enough...
>... Anyway, good to
>hear, that you could at least confirm the memory leackage :-)
>I'm trying with shared mem now - what's your opinion? Is it likely to be
>faster than shared data?
I have no idea, really. Would like to hear your results...
Have you looked at POE.pm already? Maybe that's a solution to your problem?
Liz