On Sep 24, 2008, at 3:17 PM, Perrin Harkins wrote:
On Wed, Sep 24, 2008 at 3:08 AM, badman <[EMAIL PROTECTED]> wrote:
For Michael, yes i know what it mean to have global variables
(semaphores,
...) i was investigating this option because when i do call ...-
>new(); it
reads a file to initiate its attribute.
I would like to improve the performance not reading always the file
If the file doesn't change, read it into a global in the parent
process before forking. Then you'll have it for use in the children.
For Ryan, i already see IPC::Shareable before using it i was
investigating
some other option, but i think i'l use it :)
Be careful, IPC::Shareable is pretty slow, especially for large chunks
of data. In most cases, an RDBMS or a dbm file ends up being faster.
also memcached can work well here
// Jonathan Vanasco
w. http://findmeon.com/user/jvanasco
e. [EMAIL PROTECTED]
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
| Founder/CEO
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -
| FindMeOn.com - The cure for Multiple Web Personality Disorder
| Privacy Minded Web Identity Management and 3D Social Networking
| - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
- - - - - - - - - - - - -