Victor Stinner avatar Victor Stinner committed a248bbb

TODO

Comments (0)

Files changed (2)

 Changes:
 
  * Add Config.enable_all_optimizations() method
- * Add a more aggressive option to remove dead code:
-   config.remove_almost_dead_code, disabled by default
+ * Add a more aggressive option to remove dead code
+   (config.remove_almost_dead_code), disabled by default
  * Unroll loops (no support for break/continue yet)
  * Remove useless instructions. Example:
    "x=1; 'abc'; print(x)" => "x=1; print(x)"
 Misc
 ====
 
+ * remove useless code: "try: pass except: pass"
+ * replace '(a and b) and c' (2 op) with 'a and b and c' (1 op), same for "or" operator
  * unroll:
 
    - support break/continue
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.