Title: Factor out tracing and optimization heuristics into a single "policy" object. · Issue #141504 · python/cpython · GitHub
Open Graph Title: Factor out tracing and optimization heuristics into a single "policy" object. · Issue #141504 · python/cpython
X Title: Factor out tracing and optimization heuristics into a single "policy" object. · Issue #141504 · python/cpython
Description: The SAI, tracer and optimizer all contain a number of heuristics about when to optimize, how to link the optimized code and when to backoff, etc. Almost all of these heuristics are just numbers. We should group them together into a singl...
Open Graph Description: The SAI, tracer and optimizer all contain a number of heuristics about when to optimize, how to link the optimized code and when to backoff, etc. Almost all of these heuristics are just numbers. We...
X Description: The SAI, tracer and optimizer all contain a number of heuristics about when to optimize, how to link the optimized code and when to backoff, etc. Almost all of these heuristics are just numbers. We...
Opengraph URL: https://github.com/python/cpython/issues/141504
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Factor out tracing and optimization heuristics into a single \"policy\" object.","articleBody":"The SAI, tracer and optimizer all contain a number of heuristics about when to optimize, how to link the optimized code and when to backoff, etc.\n\nAlmost all of these heuristics are just numbers.\nWe should group them together into a single \"policy\" object, improving consistency and enabling experimentation.\n\n\u003c!-- gh-linked-prs -->\n### Linked PRs\n* gh-143381\n* gh-143644\n* gh-144082\n\u003c!-- /gh-linked-prs -->\n","author":{"url":"https://github.com/markshannon","@type":"Person","name":"markshannon"},"datePublished":"2025-11-13T12:11:46Z","url":"https://github.com/python/cpython/issues/141504"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:929f51a4-a464-376e-8a25-6d7392ef5e16 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 8E18:76F02:434ABFB:55E523F:6B022F55 |
| html-safe-nonce | d7fe76126fe2ce94fc09b4b302fd373cf5820b4282bfb2ec6c62a7bbb07701a8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI4RTE4Ojc2RjAyOjQzNEFCRkI6NTVFNTIzRjo2QjAyMkY1NSIsInZpc2l0b3JfaWQiOiIyMjAxMDA0NzA2MTQ5NTc2NTMzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a40823ed052ad1485b6137f119ec92f0041f4200296f0840aa7c87c86b15bad4 |
| hovercard-subject-tag | issue:3620959553 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/python/cpython/141504/issue_layout |
| twitter:image | https://opengraph.githubassets.com/3a346dd0b38a73c51f00969ab8f6669f25d5a16376aa6c0b744b442e8888d175/python/cpython/issues/141504 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/3a346dd0b38a73c51f00969ab8f6669f25d5a16376aa6c0b744b442e8888d175/python/cpython/issues/141504 |
| og:image:alt | The SAI, tracer and optimizer all contain a number of heuristics about when to optimize, how to link the optimized code and when to backoff, etc. Almost all of these heuristics are just numbers. We... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | markshannon |
| hostname | github.com |
| expected-hostname | github.com |
| None | 87e774ee7c6b3bee0490394e4d3e57ec9dbc956f74b87ea685dc8996c1676456 |
| turbo-cache-control | no-preview |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 423dbb54c5e7bfecc838eb387c1435eb3d0e760d |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width