From: Armin R. <ar...@us...> - 2002-02-02 08:25:40
|
Update of /cvsroot/psyco/psyco/test In directory usw-pr-cvs1:/tmp/cvs-serv18437 Modified Files: bpnn.py Log Message: New-style classes make Psyco much faster, because there is no explicit support for old-style ones. Index: bpnn.py =================================================================== RCS file: /cvsroot/psyco/psyco/test/bpnn.py,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** bpnn.py 2002/01/08 19:36:55 1.1 --- bpnn.py 2002/02/02 08:25:38 1.2 *************** *** 10,13 **** --- 10,15 ---- import operator import string + import _psyco + psyobj = object random.seed(0) *************** *** 37,41 **** return m ! class NN: def __init__(self, ni, nh, no): # number of input, hidden, and output nodes --- 39,43 ---- return m ! class NN(psyobj): def __init__(self, ni, nh, no): # number of input, hidden, and output nodes *************** *** 176,180 **** if __name__ == '__main__': - import _psyco v, t1 = time(demo) v, t2 = time(demo) --- 178,181 ---- |