Re: [Python-Dev] tiny optimization in ceval mainloop
by Skip Montanaro other posts by this author
Aug 30 2002 1:37AM messages near this date
Re: [Python-Dev] tiny optimization in ceval mainloop
|
Re: [Python-Dev] tiny optimization in ceval mainloop
Greg> Could you have just one ticker, instead of one per thread?
That would make ticker really count down checkinterval ticks. Also, of
possible interest is this declaration and comment in longobject.c:
static int ticker; /* XXX Could be shared with ceval? */
Any time C code would want to read or update ticker, it would have the GIL,
right? Sounds like you could get away with a single ticker. The long int
implementation appears to do just fine with only one...
Skip
_______________________________________________
Python-Dev mailing list
Python-Dev@[...].org
http://mail.python.org/mailman/listinfo/python-dev
Thread:
Jeremy Hylton
Guido van Rossum
Greg Ewing
Skip Montanaro
Steve Holden
Steve Holden
Jeremy Hylton
Jack Jansen
Tim Peters
Guido van Rossum
Skip Montanaro
Tim Peters
Jack Jansen
Tim Peters
Jack Jansen
Guido van Rossum
Tim Peters
Skip Montanaro
Skip Montanaro
Guido van Rossum
Skip Montanaro
Guido van Rossum
Jeremy Hylton
Guido van Rossum
Tim Peters
|