OSDN Git Service

qapi/expr.py: Use tuples instead of lists for static data
authorJohn Snow <jsnow@redhat.com>
Wed, 21 Apr 2021 18:20:31 +0000 (14:20 -0400)
committerMarkus Armbruster <armbru@redhat.com>
Fri, 30 Apr 2021 10:59:54 +0000 (12:59 +0200)
commiteab99939a7cd289a8b50c2e7ef6a38ca2706a46c
tree6472c7f3a6d285b23fa5c7bd4e7286f617b2ad54
parenta48653638fab9c9a9356b41d6e11544b2a7b330f
qapi/expr.py: Use tuples instead of lists for static data

It is -- maybe -- possibly -- three nanoseconds faster.

Signed-off-by: John Snow <jsnow@redhat.com>
Reviewed-by: Eduardo Habkost <ehabkost@redhat.com>
Reviewed-by: Cleber Rosa <crosa@redhat.com>
Message-Id: <20210421182032.3521476-17-jsnow@redhat.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Signed-off-by: Markus Armbruster <armbru@redhat.com>
scripts/qapi/expr.py