mirror of
https://gitlab.gnome.org/jwestman/blueprint-compiler.git
synced 2025-05-04 15:59:08 -04:00
Minor performance optimizations
This commit is contained in:
parent
9c567fe039
commit
4e02c34a5b
3 changed files with 19 additions and 13 deletions
|
@ -17,6 +17,8 @@
|
|||
#
|
||||
# SPDX-License-Identifier: LGPL-3.0-or-later
|
||||
|
||||
from functools import cached_property
|
||||
|
||||
from .. import gir
|
||||
from .imports import GtkDirective, Import
|
||||
from .gtkbuilder_template import Template
|
||||
|
@ -42,7 +44,7 @@ class UI(AstNode):
|
|||
),
|
||||
]
|
||||
|
||||
@property
|
||||
@cached_property
|
||||
def gir(self) -> gir.GirContext:
|
||||
gir_ctx = gir.GirContext()
|
||||
self._gir_errors = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue