Telethon/telethon
Lonami Exo e3c56b0d98 Reduce autocast overhead as much as possible
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.
2018-01-19 13:00:17 +01:00
..
crypto Move utils.calc_msg_key into auth_key (cyclic imports py3.4) 2018-01-08 12:07:14 +01:00
errors Make exception types correspond to Python docs 2017-12-28 09:48:02 +10:00
extensions Reuse .on_response/.__str__/.stringify, override iff necessary 2018-01-19 12:12:52 +01:00
network Add more useful logging on invalid packet length received 2018-01-13 19:26:45 +01:00
tl Reuse .on_response/.__str__/.stringify, override iff necessary 2018-01-19 12:12:52 +01:00
__init__.py Use NullHandler as default for the library 2017-11-13 10:59:43 +01:00
helpers.py Move utils.calc_msg_key into auth_key (cyclic imports py3.4) 2018-01-08 12:07:14 +01:00
telegram_bare_client.py Add stub .get_input_entity() to TelegramBareClient 2018-01-19 11:52:44 +01:00
telegram_client.py Reduce autocast overhead as much as possible 2018-01-19 13:00:17 +01:00
update_state.py Make a proper use of the logging module 2017-12-20 12:47:39 +01:00
utils.py Reduce autocast overhead as much as possible 2018-01-19 13:00:17 +01:00
version.py Update to v0.16.1 2018-01-11 22:18:58 +01:00