8000 Always write the `-i` cache · Issue #3045 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content
Always write the -i cache #3045
@gvanrossum

Description

@gvanrossum< 6B9C /div>

I've noticed that many people initially run plain mypy and then start using mypy -i but find that the first such run is not any faster than a plain run. This is understandable because it needs to warm the cache first.

We could alleviate this issue by just always writing the cache (perhaps allowing this feature to be turned off for special scenarios but having it on by default). This might cost a little bit of extra run time -- IIRC I once measured the cost of writing the cache and it was in the 5-10% range.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0