fbpx
Wikipedia

Psyco

Psyco is an unmaintained specializing just-in-time compiler for pre-2.7 Python originally developed by Armin Rigo and further maintained and developed by Christian Tismer. Development ceased in December, 2011.[1]

Psyco
Developer(s)Armin Rigo, Christian Tismer
Final release
1.6 / December 16, 2007; 15 years ago (2007-12-16)
Repository
  • bitbucket.org/arigo/psyco
Written inC, Python
Operating systemCross-platform
Platform32-bit x86 only
TypeJust-in-time compiler
LicenseMIT License
Websitepsyco.sourceforge.net

Psyco ran on BSD-derived operating systems, Linux, Mac OS X and Microsoft Windows using 32-bit Intel-compatible processors. Psyco was written in C and generated only 32-bit x86-based code.

Although Tismer announced on 17 July 2009 that work was being done on a second version of Psyco,[2] a further announcement declared the project "unmaintained and dead" on 12 March 2012 and pointed visitors to PyPy instead.[3] Unlike Psyco, PyPy incorporates an interpreter and a compiler that can generate C, improving its cross-platform compatibility over Psyco.

Speed enhancement

Psyco can noticeably speed up CPU-bound applications. The actual performance depends greatly on the application and varies from a slight slowdown to a 100x speedup.[4][5][6][7] The average speed improvement is typically in the 1.5-4x range, making Python performance close to languages such as Smalltalk and Scheme, but still slower than compiled languages such as Fortran, C or some other JIT languages like C# and Java.[8]

Psyco also advertises its ease of use: the simplest Psyco optimization involves adding only two lines to the top of a script:[9]

import psyco psyco.full() 

These commands will import the psyco module, and have Psyco optimize the entire script. This approach is best suited to shorter scripts, but demonstrates the minimal amount of work needed to begin applying Psyco optimizations to an existing program.

See also

References

  1. ^ "psyco / Commits". Bitbucket. Armin Rigo.
  2. ^ Tismer, Christian (17 July 2009). "[pypy-dev] ANN: psyco V2". pypy-dev mailing list.
  3. ^ "Psyco Homepage".
  4. ^ . Archived from the original on 2008-06-06. Retrieved 2008-04-24.
  5. ^ "Python Psyco Homepage at sourceforge". Retrieved 2009-03-04.
  6. ^ . Archived from the original on 2009-03-11. Retrieved 2009-03-04.
  7. ^ "Charming Python: Make Python run as fast as C with Psyco". IBM. Retrieved 2009-03-04.
  8. ^ . Archived from the original on 2011-06-03. Retrieved 2009-10-16.
  9. ^ Rigo, Armin. "Quick examples". The Ultimate Psyco Guide. Retrieved 3 June 2011.

External links


psyco, confused, with, psycho, disambiguation, unmaintained, specializing, just, time, compiler, python, originally, developed, armin, rigo, further, maintained, developed, christian, tismer, development, ceased, december, 2011, developer, armin, rigo, christi. Not to be confused with Psycho disambiguation Psyco is an unmaintained specializing just in time compiler for pre 2 7 Python originally developed by Armin Rigo and further maintained and developed by Christian Tismer Development ceased in December 2011 1 PsycoDeveloper s Armin Rigo Christian TismerFinal release1 6 December 16 2007 15 years ago 2007 12 16 Repositorybitbucket wbr org wbr arigo wbr psycoWritten inC PythonOperating systemCross platformPlatform32 bit x86 onlyTypeJust in time compilerLicenseMIT LicenseWebsitepsyco wbr sourceforge wbr netPsyco ran on BSD derived operating systems Linux Mac OS X and Microsoft Windows using 32 bit Intel compatible processors Psyco was written in C and generated only 32 bit x86 based code Although Tismer announced on 17 July 2009 that work was being done on a second version of Psyco 2 a further announcement declared the project unmaintained and dead on 12 March 2012 and pointed visitors to PyPy instead 3 Unlike Psyco PyPy incorporates an interpreter and a compiler that can generate C improving its cross platform compatibility over Psyco Contents 1 Speed enhancement 2 See also 3 References 4 External linksSpeed enhancement EditThis section s factual accuracy may be compromised due to out of date information Please help update this article to reflect recent events or newly available information September 2018 Psyco can noticeably speed up CPU bound applications The actual performance depends greatly on the application and varies from a slight slowdown to a 100x speedup 4 5 6 7 The average speed improvement is typically in the 1 5 4x range making Python performance close to languages such as Smalltalk and Scheme but still slower than compiled languages such as Fortran C or some other JIT languages like C and Java 8 Psyco also advertises its ease of use the simplest Psyco optimization involves adding only two lines to the top of a script 9 import psyco psyco full These commands will import the psyco module and have Psyco optimize the entire script This approach is best suited to shorter scripts but demonstrates the minimal amount of work needed to begin applying Psyco optimizations to an existing program See also Edit Free and open source software portalPyPy Unladen Swallow Cython YARV Yet another Ruby VM References Edit psyco Commits Bitbucket Armin Rigo Tismer Christian 17 July 2009 pypy dev ANN psyco V2 pypy dev mailing list Psyco Homepage Python Psyco benchmarks Archived from the original on 2008 06 06 Retrieved 2008 04 24 Python Psyco Homepage at sourceforge Retrieved 2009 03 04 A beginners guide to using Python for performance computing at scipy org Archived from the original on 2009 03 11 Retrieved 2009 03 04 Charming Python Make Python run as fast as C with Psyco IBM Retrieved 2009 03 04 Boxplot Summary Archived from the original on 2011 06 03 Retrieved 2009 10 16 Rigo Armin Quick examples The Ultimate Psyco Guide Retrieved 3 June 2011 External links EditPsyco on SourceForge David Mertz s IBM developerWorks article Make Python run as fast as C with Psyco psyco notes Poor Yorick This free and open source software article is a stub You can help Wikipedia by expanding it vte Retrieved from https en wikipedia org w index php title Psyco amp oldid 1129702643, wikipedia, wiki, book, books, library,

article

, read, download, free, free download, mp3, video, mp4, 3gp, jpg, jpeg, gif, png, picture, music, song, movie, book, game, games.