taipy
taipy copied to clipboard
BUG-The display of multiple Bools in tables slows down the application
A table visual element will display boolean values like this:
This looks great but unfortunately, when you have 100 rows and 10 columns of booleans, 1000 of these toggles are rendered on the page which slows down the application to the point where every interaction takes some time to be processed.
For example: this is slow
import pandas as pd
from taipy.gui import Gui
value = 10
data = pd.DataFrame()
# Create 1O columns with 100 rows of bools
for i in range(10):
data[i] = [True if j % value == 0 else False for j in range(100)]
page = """
<|{value}|slider|>
<|{data}|table|>
"""
Gui(page).run()
Replace True and False with 1 and 0 and things run faster
proposal:
- improve the rendering of the boolean (keep the toggle and make it efficient or replace it with a symbol that indicates the value (check box, T/F, 1/0, etc..)
- If it fails, it must be documented, saying it can be replaced like the Alex workaround.