Re: [Python-Dev] Python startup time

2017年7月20日 05:59:50 -0700

On 2017年7月20日 21:29:18 +0900
INADA Naoki <[email protected]> wrote:
> 
> WeakSet should be cared specially.
> Maybe, ABCMeta can be optimized first.
> 
> Currently, ABCMeta use three WeakSets. But it can be delayed until
> `register` or
> `issubclass` is called.
> So even if WeakSet is implemented in Python, I think ABCMeta can be much 
> faster.
Simple uses of WeakSet can probably be replaced with regular sets +
weakref callbacks. As long as you are not doing one of the delicate
things (such as iterate), it should be fine.
Regards
Antoine.
_______________________________________________
Python-Dev mailing list
[email protected]
https://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to