Pydantic author here. We have plans for an improvement to pydantic where JSON is parsed iteratively, which will make way for reading a file as we parse it. Details in <a href="https://github.com/pydantic/pydantic/issues/10032">https://github.com/pydantic/pydantic/issues/10032</a>.<p>Our JSON parser, jiter (<a href="https://github.com/pydantic/jiter">https://github.com/pydantic/jiter</a>) already supports iterative parsing, so it's "just" a matter of solving the lifetimes in pydantic-core to validate as we parse.<p>This should make pydantic around 3x faster at parsing JSON and significantly reduce the memory overhead.