| 443 | try : |
| 444 | import psyco |
| 445 | except ImportError : |
| 446 | pass # Psyco is not installed |
| 447 | else : |
| 448 | # Psyco is installed, tell it to compile |
| 449 | # the CPU intensive methods : PCL and PCLXL |
| 450 | # parsing will greatly benefit from this, |
| 451 | # for PostScript and PDF the difference is |
| 452 | # barely noticeable since they are already |
| 453 | # almost optimal, and much more speedy anyway. |
| 454 | psyco.bind(PostScriptAnalyzer.getJobSize) |
| 455 | psyco.bind(PDFAnalyzer.getJobSize) |
| 456 | psyco.bind(PCLAnalyzer.getJobSize) |
| 457 | psyco.bind(PCLXLAnalyzer.getJobSize) |