The IPC::ShareLite is very slow than fetch data from file ??



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;




.