[ROOT] piping input to root?

From: Rob Snihur (snihur@fnal.gov)
Date: Fri Aug 09 2002 - 22:33:11 MEST


Hi,
Both of the following two commands work:

root -l -b -q foo.C
cat foo.C | root -l -b

However, the latter is much slower (a factor >25) than the former!
If the file foo.C is generated by an external program (e.g., a Monte
Carlo),
then the latter case is attractive because the intermediate file foo.C
need not be written to disk.

Is there any way to speed up how root reads input from a pipe?
Is it an issue of an internal buffer size in unix?
I see similar behaviour on both linux and SGI IRIX.
I am using root 3.02/06.

thanks,
-rob



This archive was generated by hypermail 2b29 : Sat Jan 04 2003 - 23:51:04 MET