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

On Mon, May 30, 2022 at 3:30 PM Cooper Lees <[email protected]> wrote:

> Hi All,
>
> I saw 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
> - 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].
> 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

-- 
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/CAD8N0v8GaAyqCWLiJs1LgmOFRrF6PWwKb2G9oSdQORCnAyO87g%40mail.gmail.com.

Reply via email to