mirror of
https://github.com/LonamiWebs/Telethon.git
synced 2025-12-07 18:23:56 +03:00
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 | ||