My challenge lies in displaying a list of items stored in an array[] when the user clicks on a tab. The data set contains around 10k rows, which is quite large, and currently takes approximately 2 to 3 seconds to render on the UI after the click event. I am eager to optimize this process and achieve near-instantaneous rendering - ideally within 1 second or even instantly. Any suggestions on how I can improve the performance to display the entire list of 10k rows swiftly?
Note: It's important to mention that the data is already loaded into the array before the user interacts with the tab.
Your insights and recommendations are highly appreciated.