[Python-Dev] with_traceback (original) (raw)
Adam Olsen rhamph at gmail.com
Thu Mar 1 03:55:29 CET 2007
- Previous message: [Python-Dev] with_traceback
- Next message: [Python-Dev] with_traceback
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
On 2/28/07, Greg Ewing <greg.ewing at canterbury.ac.nz> wrote:
Adam Olsen wrote:
> How plausible would it be to optimize all exception instantiation? > Perhaps use slots and a freelist for everything inheriting from > BaseException and not inheriting from other builtin types? I'm not sure a free list would help much for instances of user define classes, since creating one involves setting up a dict, etc. And if you use slots you end up with objects of different sizes, which isn't free-list-friendly.
Not easy, but doable. Perhaps a plan B if nobody comes up with a plan A.
-- Adam Olsen, aka Rhamphoryncus
- Previous message: [Python-Dev] with_traceback
- Next message: [Python-Dev] with_traceback
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]