mirror of
https://github.com/Textualize/textual.git
synced 2025-10-17 02:38:12 +03:00
optimization
This commit is contained in:
@@ -413,9 +413,10 @@ class Strip:
|
||||
"""
|
||||
if self._render_cache is None:
|
||||
color_system = cast(ColorSystem, console.color_system)
|
||||
render = Style.render
|
||||
self._render_cache = "".join(
|
||||
[
|
||||
style.render(text, color_system=color_system)
|
||||
render(style, text, color_system=color_system)
|
||||
for text, style, _ in self._segments
|
||||
if style is not None
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user