Next Making Programs Faster 56

perldoc

     % strace -s10000 -f -o perldoc.trace perldoc perlfunc > /dev/null

     % grep execve perldoc.trace
     21892 execve("/usr/local/bin/perldoc", ["perldoc", "perlfunc"], ...
     21893 execve("/bin/sh", ["sh", "-c", 
        "/usr/local/bin/pod2man --lax /usr/local/lib/perl5/5.8.0/pod/perlfunc.pod | nroff -man"], ...
     21894 execve("/usr/local/bin/pod2man", 
        ["/usr/local/bin/pod2man", "--lax", 
         "/usr/local/lib/perl5/5.8.0/pod/perlfunc.pod"], ...
     21895 execve("/usr/bin/nroff", ["nroff", "-man"], ...

      %  time /usr/local/bin/pod2man --lax 
           /usr/local/lib/perl5/5.8.0/pod/perlfunc.pod > /dev/null
      real    0m18.158s
      user    0m17.670s
      sys     0m0.080s

Next Copyright © 2003 M. J. Dominus