
Charlie MarshandCharlie Marsh
25c2129f4e
[ty] Share predicate evaluations within an inference region (#30235)
## Summary
When ty checks which bindings can reach a use and then narrows their
types, both steps can ask whether the same predicate is true. We now
share the answer when those steps read the same scope’s use-def map.
Each inference execution gets a fresh cache, including each iteration of
a recursive inference cycle.
<!-- ty-pinned-project-instructions:start -->
| Project | Base instructions | PR instructions | Change | Paired range
|
|---|---:|---:|---:|---:|
|
[Black](https://github.com/psf/black/tree/55996d1fb8342725c8a19b6023cd9439c3c1d6f7)
| 4,026,692,605 | 3,984,905,448 | -0.90% | -1.51% to -0.57% |
|
[discord.py](https://github.com/Rapptz/discord.py/tree/65232c38702be5844cf2ce865a4777eb1928b5d0)
| 10,698,274,696 | 10,652,910,344 | -0.45% | -1.39% to +0.41% |
|
[Django](https://github.com/django/django/tree/b501b8493f31cf8cba31211d59b3b78642b8cb02)
| 18,069,858,960 | 17,921,050,650 | -0.84% | -1.22% to -0.42% |
|
[FastAPI](https://github.com/fastapi/fastapi/tree/7a0a3f0b286c6c865cf4398ea0e957a87b8bffa4)
| 4,193,864,422 | 4,180,340,266 | -0.39% | -0.58% to +0.33% |
| [Home
Assistant](https://github.com/home-assistant/core/tree/c19ae285ede74cd64c3045a3a4aa43290c224f1b)
| 194,102,009,296 | 194,396,235,002 | +0.04% | -0.99% to +0.87% |
|
[HTTPX](https://github.com/encode/httpx/tree/b5addb64f0161ff6bfe94c124ef76f6a1fba5254)
| 2,154,044,216 | 2,154,052,122 | +0.05% | -0.98% to +0.44% |
|
[isort](https://github.com/pycqa/isort/tree/a514c71ed86c2216d0040c7d60e302ed76a4f7ab)
| 2,501,383,304 | 2,267,758,826 | -9.37% | -9.74% to -9.11% |
|
[Jinja](https://github.com/pallets/jinja/tree/5ef70112a1ff19c05324ff889dd30405b1002044)
| 2,457,094,670 | 2,446,986,990 | -0.23% | -0.89% to +0.19% |
|
[NumPy](https://github.com/numpy/numpy/tree/f9f1772ce010001208475f751d19253469788410)
| 11,474,768,662 | 11,441,625,873 | -0.19% | -0.59% to +0.33% |
| [OpenAI Python
SDK](https://github.com/openai/openai-python/tree/f6e8480f9a5b2a4d02b17a1da54a1e57964bc312)
| 20,986,631,984 | 20,916,416,914 | -0.13% | -0.38% to +0.54% |
|
[pandas](https://github.com/pandas-dev/pandas/tree/a0225b65720018f4654390bb16d254daa6ee5e54)
| 36,576,788,370 | 36,483,963,432 | -0.25% | -0.63% to +0.17% |
|
[pandas-stubs](https://github.com/pandas-dev/pandas-stubs/tree/8dd6d91b1c05b26e30f7ddbe3dc3d4042a92bdd6)
| 4,324,298,447 | 4,312,072,276 | -0.06% | -0.64% to +0.47% |
|
[Prefect](https://github.com/PrefectHQ/prefect/tree/a9452ac21852755311913cb27887b083b5007c03)
| 6,383,835,870 | 6,384,790,909 | +0.02% | -0.33% to +0.22% |
|
[pytest](https://github.com/pytest-dev/pytest/tree/8b005ed7f972987033ec34dc1e68b0635fb8142b)
| 10,981,494,376 | 10,957,406,572 | -0.22% | -0.69% to +0.54% |
|
[PyTorch](https://github.com/pytorch/pytorch/tree/ab92945cea42e47ae398aead69af0872d340ea0f)
| 115,019,106,630 | 114,552,606,198 | -0.35% | -0.75% to -0.23% |
|
[Rich](https://github.com/Textualize/rich/tree/9d8f9a372cc5916fd4781fec207ced7ddac2f08f)
| 3,396,574,514 | 3,385,862,249 | -0.42% | -0.95% to +0.36% |
|
[SQLAlchemy](https://github.com/sqlalchemy/sqlalchemy/tree/10f4d1e2d706a7722ca78e79ce05b00333a7aa5b)
| 25,855,384,728 | 25,780,304,475 | -0.28% | -0.38% to +0.09% |
|
[SymPy](https://github.com/sympy/sympy/tree/85d3998a4517ffbc8a9709b8efa769bb417c174a)
| 57,482,597,093 | 55,549,708,718 | -3.32% | -4.09% to -2.41% |
All 18 projects produced byte-identical output and matching exit codes
in the measured runs.
<!-- ty-pinned-project-instructions:end -->
Co-authored-by: Charlie Marsh <charliemarsh@openai.com>
2026-11-09 20:38:19 -05:00
..
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2026-03-12 11:41:56 +00:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2026-03-12 11:41:56 +00:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2026-03-12 11:41:56 +00:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2026-03-12 11:41:56 +00:00
2025-06-11 08:55:30 +02:00
2026-03-12 11:41:56 +00:00
2026-03-12 11:41:56 +00:00
2026-03-12 11:41:56 +00:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2026-03-12 11:41:56 +00:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2026-03-12 11:41:56 +00:00
2026-03-12 11:41:56 +00:00
2026-03-12 11:41:56 +00:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-07-09 08:46:33 +02:00
2025-06-11 08:55:30 +02:00
2025-11-02 14:35:33 +01:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2026-03-12 11:41:56 +00:00
2026-03-12 11:41:56 +00:00
2026-03-12 11:41:56 +00:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2026-03-12 11:41:56 +00:00
2026-03-12 11:41:56 +00:00
2026-03-12 11:41:56 +00:00
2025-06-11 08:55:30 +02:00
2026-03-12 11:41:56 +00:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2026-02-17 17:11:05 +00:00
2025-07-25 02:05:32 +00:00
2025-06-11 08:55:30 +02:00
2025-11-26 08:50:26 -08:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-11-03 15:41:11 +00:00
2025-12-22 16:16:03 -08:00
2025-12-23 13:22:54 -08:00
2026-03-26 14:14:40 -04:00
2026-03-13 14:55:45 +09:00
2025-12-12 15:49:20 -08:00
2025-12-12 15:49:20 -08:00
2025-12-11 19:21:34 -08:00
2025-12-11 19:21:34 -08:00
2025-08-13 15:51:59 -07:00
2025-12-03 19:01:42 +00:00
2026-03-25 14:58:38 -04:00
2025-11-26 08:50:26 -08:00
2025-11-12 10:15:51 -08:00
2025-11-26 08:50:26 -08:00
2026-03-12 11:41:56 +00:00
2025-12-07 15:58:11 +00:00
2025-12-04 18:05:41 -08:00
2025-12-04 18:48:38 -08:00
2025-06-11 08:55:30 +02:00
2026-10-01 11:37:53 +00:00
2026-10-01 11:37:53 +00:00
2026-10-01 11:37:53 +00:00
2026-10-01 11:37:53 +00:00
2026-10-01 11:37:53 +00:00
2026-11-09 20:38:19 -05:00
2026-10-07 09:22:57 -04:00
2026-07-29 08:05:12 -07:00
2025-06-11 08:55:30 +02:00
2025-06-11 08:55:30 +02:00
2025-07-25 11:16:04 +01:00
2026-02-09 10:55:52 +01:00
2026-10-14 19:56:23 -04:00
2026-07-25 14:23:15 -07:00
2026-11-02 22:21:47 +00:00
2026-09-30 15:42:43 -04:00
2026-09-30 15:42:43 -04:00
2026-09-29 15:10:01 -04:00
2026-10-27 07:30:58 -07:00
2026-07-07 02:32:21 -07:00