.. include:: crossreferences.asc .. |title| replace:: Translator Optimisations .. |wp| replace:: WP43 .. |start| replace:: M2 .. |p1| replace:: X .. |m1| replace:: 6 .. |p2| replace:: Y .. |m2| replace:: 6 .. |p3| replace:: |e| .. |m3| replace:: |e| .. |p4| replace:: |e| .. |m4| replace:: |e| .. |p5| replace:: |e| .. |m5| replace:: |e| .. |p6| replace:: |e| .. |m6| replace:: |e| .. include:: wp-toptable.asc .. include:: wp-tablebegin.asc **Objectives** - Identification and Implementation of Optimisations through modifications of the Translator. .. include:: wp-tableend.asc .. include:: wp-tablebegin.asc **Description of work** The following alternatives are mostly specific to a particular low-level run-time. * Implement and compare different object layout and memory management strategy or strategies, e.g. reference counting vs. Boehm garbage collection vs. our own. Includes speed vs. data size trade-offs. * Study approaches concerning code size vs. speed trade-offs (e.g. whether the final interpreter should still include compact precompiled bytecode or be completely translated into C). * Solve the complex issue of threading (global interpreter lock vs. alternatives). * Enhance multimethod dispatching. * Implement schemes of pointer tagging, e.g. encoding an integer object as a pointer with a special value instead of a real pointer to a data structure representing the integer. * Run various performance tests on the above, check for an overall improvement or application dependency. * For each issue, work on **several solutions** when no one is obviously better than the other ones. * Create reports and merge the results back into the optimization effort. As of general interest, submit the reports as publication. Note that compatibility with legacy C extensions can be achieved by choosing, for each of the following issues, the same one as CPython did. .. include:: wp-tableend.asc .. include:: wp-tablebegin.asc **Deliverables** - DL??? to be defined. Publication. - DL??? Passing all applicable elements of the standard test suite. .. include:: wp-tableend.asc .. include:: wp-tablebegin.asc **Milestones and Expected Result** - M4 with M3 WP42_ WP44_ .. include:: wp-tableend.asc