[Tutor] Re:[Tutor]Question on python
alan.gauld@bt.com
alan.gauld@bt.com
Thu Nov 21 12:46:14 2002
> I'm not sure it's a good idea to make these kinds of mixing
> language shortcuts. This is certainly more compact than the
> corresponding solution in python, which would probably land
> on ten lines or so, but I think it's more difficult to
> maintain.
That's an issue it's true. The other consideration if the program has
to process a lot is that it's extremely inefficient of machine resources.
All those processes starting up under the OS will gobble up CPU, so
if your program is running on a shared computer then you could
become very unpopular!
Long poipelines like that are really intended to be a user feature
in Unix systems, putting them in batch files or long running
processes - especially inside looops!! - is a very unfriendly
thing to do. So be nice and use nice(1)....
Alan G.