mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-06-22 23:19:25 -04:00
Minor performance optimizations
This commit is contained in:
parent
9c567fe039
commit
4e02c34a5b
3 changed files with 19 additions and 13 deletions
|
@ -237,9 +237,7 @@ class Typelib:
|
|||
if loc == 0:
|
||||
return None
|
||||
|
||||
end = loc
|
||||
while self._typelib_file[end] != 0:
|
||||
end += 1
|
||||
end = self._typelib_file.find(b"\0", loc)
|
||||
return self._typelib_file[loc:end].decode("utf-8")
|
||||
|
||||
def _int(self, size, signed) -> int:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue