# gpui: Add data table example \(\#24373\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/ead5a836a1dcebdc7d59a189d2d74766dbdb1408)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: ead5a836a1dcebdc7d59a189d2d74766dbdb1408

Requested commit: ead5a836a1dcebdc7d59a189d2d74766dbdb1408

Commit: ead5a836a1dcebdc7d59a189d2d74766dbdb1408

Tree: ca968c0558ac53c5e7a73387eba8b8550dc62cb7

Author: Jason Lee

Committer: GitHub

## Message

````
gpui: Add data table example (#24373)

Release Notes:

- N/A

As https://github.com/zed-industries/zed/discussions/24260 I mentioned
issue.

Make a complex data table example to test the text rendering
performance.

This example also can be an example to show how to build a large data
table.

```bash
cargo run -p gpui --example data_table
```

<img width="2004" alt="image"
src="https://github.com/user-attachments/assets/653771e5-ef08-4d76-97b9-90ea4b78be59"
/>

----

I will try to do some test. 

For example: With a threshold for the hold number of caches in
`FrameCache`, and only when the threshold is greater than a certain
number, some caches are released, or when a certain time has passed. I
am not sure if this is feasible.

This example is added to help us to test.
````

## Parents

- [3be8066415843bff3859e4c468c28343503216d0](https://git.cafe/gitcafe/zed/commit/3be8066415843bff3859e4c468c28343503216d0?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/ead5a836a1dcebdc7d59a189d2d74766dbdb1408?format=markdown)
