[Twisted-Python] Ticket #8244 (old-style decorator)

Glyph glyph at twistedmatrix.com
Wed Mar 23 12:39:21 MDT 2016


> On Mar 23, 2016, at 9:22 AM, L. Daniel Burr <ldanielburr at me.com> wrote:
> 
> My concern is that, should these classes be converted into hybrids via the @oldStyle decorator, my service may experience some reduction in the number of requests per second that it handles

If oldStyle converts the classes into hybrids, then it's broken.  Hybrids don't follow the semantics of old-style classes.  So this won't happen.

>  I should definitely test the results to see if there *is* a performance regression in my case.

My guess is that this is an insignificant micro-optimization and that pypy has gotten better at optimizing hybrids since that caution was written.  That said, we're really bad at paying attention to speed.twistedmatrix.com <http://speed.twistedmatrix.com/> and we really need a way to see pre-merge performance metrics rather than just a graph over time.

-g
-------------- next part --------------
An HTML attachment was scrubbed...
URL: </pipermail/twisted-python/attachments/20160323/b75a6669/attachment-0002.html>


More information about the Twisted-Python mailing list