Message286160
merge-constants.patch is rather a proof of concept. I think it may be more efficient after removing unneeded folded constants (issue28813). But this can be done better with the AST optimizer (issue1346238, issue11549). It would be worth also to merge nested constants. This is similar to interning string constants (see in Objects/codeobject.c).
The benefit is small and we should check that merging constants doesn't have too large cost (CPU time or temporally consumed memory) at compile time.
I think we should first implement the AST optimizer, and then try to combine merging constants with interning string constants. |
|
Date |
User |
Action |
Args |
2017-01-24 09:17:12 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, rhettinger, vstinner, methane |
2017-01-24 09:17:12 | serhiy.storchaka | set | messageid: <1485249432.78.0.237260073834.issue29336@psf.upfronthosting.co.za> |
2017-01-24 09:17:12 | serhiy.storchaka | link | issue29336 messages |
2017-01-24 09:17:12 | serhiy.storchaka | create | |
|