twenty/packages
Lucas Bordeau 03b3c8a67a
Refactored all FieldDisplay types for performance optimization (#5768)
This PR is the second part of
https://github.com/twentyhq/twenty/pull/5693.

It optimizes all remaining field types.

The observed improvements are :
- x2 loading time improvement on table rows
- more consistent render time

Here's a summary of measured improvements, what's given here is the
average of hundreds of renders with a React Profiler component. (in our
Storybook performance stories)

| Component | Before (µs) | After (µs) |
| ----- | ------------- | --- |
| TextFieldDisplay | 127 | 83 |
| EmailFieldDisplay | 117 | 83 |
| NumberFieldDisplay | 97 | 56 |
| DateFieldDisplay | 240 | 52 |
| CurrencyFieldDisplay | 236 | 110 |
| FullNameFieldDisplay | 131 | 85 |
| AddressFieldDisplay | 118 | 81 |
| BooleanFieldDisplay | 130 | 100 |
| JSONFieldDisplay | 248 | 49 |
| LinksFieldDisplay | 1180 | 140 |
| LinkFieldDisplay | 140 | 78 |
| MultiSelectFieldDisplay | 770 | 130 |
| SelectFieldDisplay | 230 | 87 |
2024-06-12 18:36:25 +02:00
..
twenty-chrome-extension 5622 add a syncemail onboarding step (#5689) 2024-06-05 18:16:53 +02:00
twenty-docker Fix docs build in CI (#5826) 2024-06-11 19:06:37 +02:00
twenty-emails 5078 ability to invite team members (#5750) 2024-06-05 16:35:14 +02:00
twenty-front Refactored all FieldDisplay types for performance optimization (#5768) 2024-06-12 18:36:25 +02:00
twenty-postgres Fix postgres 15 & 16 conflict (#4860) 2024-04-11 11:42:48 +02:00
twenty-server Fix missing cursor on rest api (#5841) 2024-06-12 16:25:04 +02:00
twenty-ui Refactored all FieldDisplay types for performance optimization (#5768) 2024-06-12 18:36:25 +02:00
twenty-utils Fix docs build in CI (#5826) 2024-06-11 19:06:37 +02:00
twenty-website Temporary fix README (#5814) 2024-06-11 10:18:08 +02:00
twenty-zapier Add authentication optional api url parameter (#5803) 2024-06-11 12:08:21 +02:00