Message286775
> So yeah, the "side effect" is that struct.pack("i", 1) becomes 1.56x faster
> (-36%). Ok, maybe it was my main goal ;-) I also mentioned the "new" (?)
> contiguous requirement on buffers.
struct.pack() always was faster than int.to_bytes(). I wanted to speed up
int.to_bytes(), and after converting to Argument Clinic in issue20185 it have
became faster than struct.pack(). But after converting the struct module to
Argument Clinic struct.pack() is faster than int.to_bytes() again! Now I need
to find other ways to make int.to_bytes() even faster to win this chase. |
|
Date |
User |
Action |
Args |
2017-02-02 12:43:13 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, vstinner, larry, methane, python-dev, martin.panter |
2017-02-02 12:43:13 | serhiy.storchaka | link | issue29300 messages |
2017-02-02 12:43:13 | serhiy.storchaka | create | |
|