Awesome news to hear this is happening. I do appreciate the time required here and the need for refactoring to make Python code more type sane.
Cheers, Cooper > On Jun 6, 2022, at 9:55 AM, Matt Martz <[email protected]> wrote: > > We are working towards type annotations. I would recommend reading over the > proposal[1] that we have largely agreed to. But regardless, this isn't > something that will happen overnight, it will likely take years. And we > don't have any intention of just blanket applying it to the whole code base > up front. It'll be slow, and only added as necessary. In some cases, it may > require rewriting code, which in some cases could also require deprecation > cycles. > > [1] https://github.com/ansible/proposals/issues/202 > <https://github.com/ansible/proposals/issues/202> > > On Mon, May 30, 2022 at 3:30 PM Cooper Lees <[email protected] > <mailto:[email protected]>> wrote: > Hi All, > > I saw https://github.com/ansible/ansible/issues/69424 > <https://github.com/ansible/ansible/issues/69424> indicated that type > annotations was not considered for the ansible code base. I would like to > revist this topic and share the added on ability to potentially "compile" > ansible using mypyc to get performance and resource usage wins for anisble > itself. > > I personally run ansible-playbook over my personal infra of 6 VPS's and home > routers and am very surprised at the resources it uses to do so. > > Here is some good points on why this could be a good thing to support: > - > https://glyph.twistedmatrix.com/2022/04/you-should-compile-your-python-and-heres-why.html > > <https://glyph.twistedmatrix.com/2022/04/you-should-compile-your-python-and-heres-why.html> > - We also converted black (as I am a maintainer) to mypyc and saw a ~2x > speedup > > I understand this is a large undertaking, but was just wanting to see peoples > point of views here. Thoughts? > > -- > You received this message because you are subscribed to the Google Groups > "Ansible Project" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/8ddedde5-fd58-438a-a9da-7b579b5936a1n%40googlegroups.com > > <https://groups.google.com/d/msgid/ansible-project/8ddedde5-fd58-438a-a9da-7b579b5936a1n%40googlegroups.com?utm_medium=email&utm_source=footer>. > > > -- > Matt Martz > @sivel > sivel.net <http://sivel.net/> > > -- > You received this message because you are subscribed to a topic in the Google > Groups "Ansible Project" group. > To unsubscribe from this topic, visit > https://groups.google.com/d/topic/ansible-project/nFnDyn3kmvQ/unsubscribe > <https://groups.google.com/d/topic/ansible-project/nFnDyn3kmvQ/unsubscribe>. > To unsubscribe from this group and all its topics, send an email to > [email protected] > <mailto:[email protected]>. > To view this discussion on the web visit > https://groups.google.com/d/msgid/ansible-project/CAD8N0v8GaAyqCWLiJs1LgmOFRrF6PWwKb2G9oSdQORCnAyO87g%40mail.gmail.com > > <https://groups.google.com/d/msgid/ansible-project/CAD8N0v8GaAyqCWLiJs1LgmOFRrF6PWwKb2G9oSdQORCnAyO87g%40mail.gmail.com?utm_medium=email&utm_source=footer>. -- You received this message because you are subscribed to the Google Groups "Ansible Project" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/ansible-project/8E23E6EF-4C99-48C9-A0E9-CCE0EE72AB5C%40cooperlees.com.
