diff options
author | Viktor Velichkin <avisom@yandex.ru> | 2022-05-31 22:12:15 +0300 |
---|---|---|
committer | Beno�t Ganne <bganne@cisco.com> | 2022-06-01 14:36:40 +0000 |
commit | 7c3096dac7c96b0c9b0667dcf237f6f9a21c1505 (patch) | |
tree | 04b50727df8a0da92e34b25a5d3905fcf70e62f1 /src/plugins/unittest | |
parent | 321bd106a64bdd6c051579f58e111f71c2c7e7d6 (diff) |
papi: vpp_serializer.py - replace slow bytes() with fast bytearray()
https://docs.python.org/3/library/stdtypes.html
"if concatenating bytes objects, you can similarly use bytes.join() or io.BytesIO, or you can do in-place concatenation with a bytearray object. bytearray objects are mutable and have an efficient overallocation mechanism"
Type: improvement
Signed-off-by: Viktor Velichkin <avisom@yandex.ru>
Change-Id: Id20d337f909cce83fcd9e08e8049bb0bf5970fbc
Diffstat (limited to 'src/plugins/unittest')
0 files changed, 0 insertions, 0 deletions