mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2024-11-23 01:46:35 +03:00
e3c56b0d98
Rationale: if the user is doing things right, the penalty for being friendly (i.e. autocasting to the right version, like User -> InputPeerUser), should be as little as possible. Removing the redundant type() call to access .SUBCLASS_OF_ID and assuming the user provided a TLObject (through excepting whenever the attribute is not available) is x2 and x4 times faster respectively. Of course, this is a micro-optimization, but I still consider it's good to benefit users doing things right or avoiding redundant calls. |
||
---|---|---|
.. | ||
crypto | ||
errors | ||
extensions | ||
network | ||
tl | ||
__init__.py | ||
helpers.py | ||
telegram_bare_client.py | ||
telegram_client.py | ||
update_state.py | ||
utils.py | ||
version.py |