The IPC::ShareLite is very slow than fetch data from file ??
- From: "sonet" <sonet.all@xxxxxxxxxxxxx>
- Date: Tue, 25 Oct 2005 19:04:57 +0800
time shmTest.pl
....
0.11u 0.02s 0:00.13 100.0%
----------------------------------------------------------------------------
---
time fileTest.pl
....
0.01u 0.01s 0:00.02 100.0%
=================================================
fileTest.pl
=================================================
#!/usr/local/bin/perl
open(HANDLE,"/usr/local/octopus/html/test.conf");
print join('',<HANDLE>);
close(HANDLE);
=================================================
shmTest.pl
The data is load from /usr/local/octopus/html/test.conf
=================================================
#!/usr/local/bin/perl
use IPC::ShareLite;
$share = new IPC::ShareLite( -key =>'test.conf',
-destroy => 'no' ) or die $!;
$confstr = $share->fetch;
print $confstr;
.
- Follow-Ups:
- Prev by Date: Problem to install Parse::Lex, all tests fails
- Next by Date: The IPC::ShareLite is very slow than fetch data from file ??
- Previous by thread: Problem to install Parse::Lex, all tests fails
- Next by thread: The IPC::ShareLite is very slow than fetch data from file ??
- Index(es):