[Israel.pm] Demonizing a commanline utility

Shlomo Yona shlomo at cs.haifa.ac.il
Mon Feb 28 09:06:06 PST 2005


I have a commanline utility that accepts input from the
standard input and then produces its output at the standard
output. So far so good.
This utility, when invoked, loads a very large data
structure into memory, an operation that takes a few
seconds, but once this data structure is loaded, the utility
produces output in a very high rate.

I would like to "deamonize" this utility so it can be loaded
once (including that expensive data structure loading) but
then accept input and produce output rapidly, without paying
the "loading" penalty every time.

This utility is a binary file that I have licensed from a
vendor. There's no way to get the sources or have the vendor
change it.

Any suggestions?

Shlomo Yona
shlomo at cs.haifa.ac.il

More information about the Perl mailing list