I search best method for split long string look like b'a: 1\nb: 2\n ...' - about 50-70 keys.
Length of string is 8-10K bytes. So, I have about 1K strings per second.
By best method looks like:
dict(x.split(b": ") for x in bytes(headers).split(b'\n'))
Maybe cython gives good result?