mypy
f1167bc4 - [mypyc] Faster bytes formatting (#10989)

Commit
4 years ago
[mypyc] Faster bytes formatting (#10989) Speed up simple % formatting with bytes (%s and %b). * Share the same tokenizer with string formatting. * Add a new conversion helper function that converts values to bytes. * Add a bytes construction C helper function CPyBytes_Build and join_formatted_bytes. * Add a new FormatOp for %b.
Parents
Loading