473,387 Members | 3,750 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Psyco tagging the same function multiple times

I'm trying some stuff with Psyco and am confused about its apparent desire
to compile the same function (or method) multiple times). Here's an
abstract from a recent run:

12:45:15.99 tag function: __main__.Watcher.processUpdate %
12:45:24.95 tag function: __main__.Watcher.processUpdate %
12:45:55.12 tag function: __main__.Watcher.processUpdate %
12:46:12.29 tag function: __main__.Watcher.processUpdate %
12:46:28.09 tag function: __main__.Watcher.processUpdate %
12:47:05.32 tag function: __main__.Watcher.processUpdate %
12:47:48.62 tag function: __main__.Watcher.processUpdate %
12:48:09.63 tag function: __main__.Watcher.processUpdate %
12:48:43.20 tag function: __main__.Watcher.processUpdate %
12:49:58.80 tag function: __main__.Watcher.processUpdate %
12:50:32.20 tag function: __main__.Watcher.processUpdate %
12:51:07.91 tag function: __main__.Watcher.processUpdate %
12:52:17.14 tag function: __main__.Watcher.processUpdate %
12:52:33.67 tag function: __main__.Watcher.processUpdate %

What (if anything) does it mean that it tagged Watcher.processUpdate more
than once?

Thanks,

Skip
Jun 28 '06 #1
2 1110

sk**@pobox.com wrote:
I'm trying some stuff with Psyco and am confused about its apparent desire
to compile the same function (or method) multiple times). Here's an
abstract from a recent run:

12:45:15.99 tag function: __main__.Watcher.processUpdate %
12:45:24.95 tag function: __main__.Watcher.processUpdate %
12:45:55.12 tag function: __main__.Watcher.processUpdate %
12:46:12.29 tag function: __main__.Watcher.processUpdate %
12:46:28.09 tag function: __main__.Watcher.processUpdate %
12:47:05.32 tag function: __main__.Watcher.processUpdate %
12:47:48.62 tag function: __main__.Watcher.processUpdate %
12:48:09.63 tag function: __main__.Watcher.processUpdate %
12:48:43.20 tag function: __main__.Watcher.processUpdate %
12:49:58.80 tag function: __main__.Watcher.processUpdate %
12:50:32.20 tag function: __main__.Watcher.processUpdate %
12:51:07.91 tag function: __main__.Watcher.processUpdate %
12:52:17.14 tag function: __main__.Watcher.processUpdate %
12:52:33.67 tag function: __main__.Watcher.processUpdate %

What (if anything) does it mean that it tagged Watcher.processUpdate more
than once?

Thanks,

Skip


I think that's what Armin means by a *specializing* compiler. I
believe it will compile multiple versions based on the arguments going
into a block of code.

Jun 28 '06 #2
What (if anything) does it mean that it tagged Watcher.processUpdate
more than once?


olsongt> I think that's what Armin means by a *specializing* compiler.
olsongt> I believe it will compile multiple versions based on the
olsongt> arguments going into a block of code.

I don't think that's the case here. The types of the arguments to this
particular method are always the same (self and a complex SWIG-wrapped
beast). It's not like I'm passing in floats one time and ints the next.

Skip

Jun 28 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: KefX | last post by:
Hey...as for what I'm doing with Python, look at my post "Strange Hotshot problem". To make a long story short, I'm embedding Python in order to write a plugin to a freeware music program; the...
10
by: William S. Perrin | last post by:
I'm a python rookie, anyone have and suggestions to streamline this function? Thanks in advance..... def getdata(myurl): sock = urllib.urlopen(myurl) xmlSrc = sock.read() sock.close() ...
7
by: Ivan Voras | last post by:
I have this simple *dumb* benchmark-like program: #import psyco #psyco.full() d = 0.0 for i in xrange(1000000000): d += i print d
3
by: Dick Moores | last post by:
psyco is acting a bit psycho for me. Please see my spinForWeb.py at <http://www.rcblue.com/Python/spinForWeb.py> When psyco is in use, entering an integer somewhere between 2000 and 2500...
5
by: Fausto Arinos Barbuto | last post by:
Hi All; I have Psyco (on Windows XP) and now I want to install it on Linux, too. I FTP'd the tarball (tar.gz) from Psyco's site but can't get it compiled. First, I tried the usual "python...
1
by: Jana | last post by:
Is there an XML-editor that can assist you in marking up the data in an urformatted text document, such that you mark the data and then right-click to access the Schema you have assigned, and...
6
by: danmcleran | last post by:
I'm not seeing much benefit from psyco (only 5-10% faster). Maybe this example is too trivial? Can someone give me some pointers as to what kind of code would see a dramatic benefit? Here's the...
3
by: a | last post by:
hi i tried psyco+webpy here is the error that i got please let me know if any of you has success run psyco+webpy thanks import web, psyco urls = ( '/', 'view', '/add','add'
15
by: Steve Bergman | last post by:
Just wanted to report a delightful little surprise while experimenting with psyco. The program below performs astonoshingly well with psyco. It finds all the prime numbers < 10,000,000 ...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.