From d58222d00714500e2f4d333e599ed90bac2c1573 Mon Sep 17 00:00:00 2001 From: Lonami Exo Date: Tue, 20 Jun 2017 11:03:46 +0200 Subject: [PATCH] Use crc32 from zlib instead from binascii It seems to be a bit faster stackoverflow.com/q/44502855 --- telethon/network/tcp_transport.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/telethon/network/tcp_transport.py b/telethon/network/tcp_transport.py index c5f7a9df..98cb25e7 100644 --- a/telethon/network/tcp_transport.py +++ b/telethon/network/tcp_transport.py @@ -1,4 +1,4 @@ -from binascii import crc32 +from zlib import crc32 from datetime import timedelta from ..errors import InvalidChecksumError