-
Hi! I think this is a very interesting project. From having played around with mypyc, my understanding is that the greater the compilation unit, the greater the speedup (which makes sense, since early binding is more efficient and jumping in and out of Python is inefficient). So what I'm aiming for is, instead of expecting each library to build itself into mypyc wheels, it'd be better if libraries just provided annotated source code and the compilation should be done on the level of the app, including the app source code and all the dependencies. So my question is, can hatch-mypyc include third party dependencies into the compilation unit? I suppose at the start it'd need to be a whitelist of some sort since not all dependencies will be type-annotated. (I'm guessing there's no package-level metadata to automatically determine that?) |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
Not possible unless you vendor dependencies |
Beta Was this translation helpful? Give feedback.
Not possible unless you vendor dependencies