if (do_name() != 'Home') : ?>
Psyco specialization
endif ?>Psyco is a specializing compiler for Python. You can use it to make specific math- or list-intensive commands run faster (up to 2x-100x). As of version 1.9.3, Psyco is included in NodeBox and will work on Intel macs (i386 architecture). To optimize a command then simply use:
try: import psyco psyco.bind(command_name) except: pass
For any code you would consider writing a C extension you can use Psyco instead. Use bind() to have Psyco examine your command and optimize it. Psyco will emit fast machine code on the fly. Remember to wrap the Psyco bindings in a try-except block so users without Psyco can still run your script.
Specialized libraries
Some of the libraries will attempt to use Psyco when running in NodeBox 1.9.3:
include("util/comment.php"); ?>