Ofek Lev

Results 1174 comments of Ofek Lev

Coming soon: https://github.com/python-cffi/cffi/pull/178

Would this be too difficult of a task for a first-time contributor?

Unfortunately, we won't be able to use this in our internal tooling at work (and personally I couldn't introduce this in Hatch as I had planned on).

Oh that's great news, thanks! I tried `msgspec` on the same code and importing takes around 35-40 ms so I would expect that but 50-60 ms would be tolerable.

Out of curiosity, how can this be "fixed"? Just wondering what the plan is technically 🙂

There is no difference for me (also I'm on Windows)

![image](https://github.com/user-attachments/assets/5868808b-7847-44d9-b0e1-cf8910178005)

![image](https://github.com/user-attachments/assets/51ef9c23-2714-4901-a8b2-d53005f42430)

This has only gotten worse on the latest versions despite [announced improvements](https://pydantic.dev/articles/pydantic-v2-9-release). Here is Python 3.12.6: ```python from typing import Literal from pydantic import BaseModel, ConfigDict class EnvironmentStatus(BaseModel): model_config =...

The times don't even change when I reduce it to the following: ```python from pydantic import BaseModel class EnvironmentStatus(BaseModel): info: str = '' ``` In fact, 2.8.2 was slightly faster...