Message76354
Everything in optimize.c is about modifying the AST (this is on tlee's
ast optimization branch, in case I didn't mention earlier). Also,
changing asdl_seq_SET would be a bad idea, since it is used for
sequences of things other than stmt_tys.
What if asdl_seq were instead a doubly-linked list? Then each node
contains enough information to add and remove elements. asdl_seq_LEN
would be slower, but it is rarely used. To be really slick, we could
store the len of the seq in the first element's prev pointer as (len <<
1) | 1. |
|
Date |
User |
Action |
Args |
2008-11-24 18:19:03 | novalis_dt | set | recipients:
+ novalis_dt, jhylton |
2008-11-24 18:19:03 | novalis_dt | set | messageid: <1227550743.1.0.334214151989.issue4327@psf.upfronthosting.co.za> |
2008-11-24 18:19:02 | novalis_dt | link | issue4327 messages |
2008-11-24 18:19:02 | novalis_dt | create | |
|