Changeset 1570 for pykota/trunk

Show
Ignore:
Timestamp:
06/26/04 16:14:31 (20 years ago)
Author:
jalet
Message:

Now uses Psyco if it is available

Location:
pykota/trunk
Files:
4 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/NEWS

    r1568 r1570  
    2222PyKota NEWS : 
    2323 
     24    - 1.19alpha27 : 
     25     
     26        - The Python accelerator Psyco is now used if available 
     27          in the generic PDL parser : it speedups PCL5 parsing by 
     28          almost three times automagically. 
     29           
    2430    - 1.19alpha26 : 
    2531     
  • pykota/trunk/pykota/pdlanalyzer.py

    r1568 r1570  
    2222# 
    2323# $Log$ 
     24# Revision 1.15  2004/06/26 14:14:31  jalet 
     25# Now uses Psyco if it is available 
     26# 
    2427# Revision 1.14  2004/06/25 09:50:28  jalet 
    2528# More debug info in PCLXL parser 
     
    438441        """ 
    439442        self.filename = filename 
     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) 
    440458         
    441459    def getJobSize(self) :     
  • pykota/trunk/pykota/version.py

    r1564 r1570  
    2222# 
    2323 
    24 __version__ = "1.19alpha26_unofficial" 
     24__version__ = "1.19alpha27_unofficial" 
    2525 
    2626__doc__ = """PyKota : a complete Printing Quota Solution for CUPS and LPRng.""" 
  • pykota/trunk/README

    r1561 r1570  
    225225      if you plan to use OpenLDAP as the Quota Storage backend. 
    226226     
     227  For performance reasons if you print in PCL format, it is strongly 
     228  suggested that you install the Python accelerator Psyco, available 
     229  at : 
     230   
     231      http://psyco.sourceforge.net 
     232       
     233  Installing Psyco is not mandatory, but it woud speedup PCL parsing 
     234  by almost 3 times. PostScript and PDF parsing can also benefit, 
     235  but in an almost unnoticeable manner since this part of the code 
     236  is already optimal. For PCL this is a completely different matter, 
     237  and if you install Psyco you will never regret it ! 
     238   
    227239  You may also benefit from having the following tools installed to 
    228240  deal with some printers :