RFC: new demandimport implementation for Python 3

Siddharth Agarwal sid at less-broken.com
Mon Jul 18 13:01:27 EDT 2016


On 7/18/16 04:54, Augie Fackler wrote:
> (+Brett)
>
> On Sat, Jul 16, 2016 at 03:47:27PM -0700, Siddharth Agarwal wrote:
>> Hi --
>>
>> Earlier this week I wrote up a new demandimport implementation for
>> Python 3.5 and above. I was targeting our internal binaries (we use
>> Mercurial's implementation for some of our Python 2 binaries) and it
>> should basically be a drop-in replacement for the one that exists in
>> Mercurial.
> Interesting. Are you aware of the demandimporter that Brett wrote for
> Python 3 as part of his importlib work there? If so, have you compared
> resulting performance characteristics?

This is based entirely on Brett's work so perf should be identical. The 
only work this does is (a) implement an ignore list and (b) hook things up.


>
>> The code is at https://bpaste.net/show/f0996d3ca46f -- if now is the
>> right time to submit patches for it I'd be happy to do that.
>>
>> - Siddharth
>>
>> _______________________________________________
>> Mercurial-devel mailing list
>> Mercurial-devel at mercurial-scm.org
>> https://www.mercurial-scm.org/mailman/listinfo/mercurial-devel




More information about the Mercurial-devel mailing list