Skip to content

Add proper lazy deserialization#21198

Open
ilevkivskyi wants to merge 1 commit intopython:masterfrom
ilevkivskyi:lazy
Open

Add proper lazy deserialization#21198
ilevkivskyi wants to merge 1 commit intopython:masterfrom
ilevkivskyi:lazy

Conversation

@ilevkivskyi
Copy link
Copy Markdown
Member

On Linux with Python 3.12 this gives (compared to 1.20.0):

  • almost 2x less memory overhead per parallel worker
  • 3-4% faster cold parallel runs
  • (most notably) ~2x faster mypy -c 'import torch' with warm cache, on my desktop warm torch now takes 250-300ms

cc @JukkaL

@github-actions
Copy link
Copy Markdown
Contributor

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant