mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-09-13 01:16:21 +00:00
perf: improve performance of clipboard history
This commit completely revamps the clipboard history feature to resolve major performance bottlenecks. The backend now uses a more intelligent data model, storing previews and content size in the database to allow for lazy-loading of large clipboard items. The frontend is updated to use paginated, infinite-scrolling lists, and it fetches full item content on-demand, which makes the initial load instantaneous and keeps the UI responsive even with a very large history.
This commit is contained in:
parent
9256457f74
commit
73c1e43f76
3 changed files with 310 additions and 145 deletions
|
@ -180,6 +180,7 @@ pub fn run() {
|
|||
oauth::oauth_get_tokens,
|
||||
oauth::oauth_remove_tokens,
|
||||
clipboard_history::history_get_items,
|
||||
clipboard_history::history_get_item_content,
|
||||
clipboard_history::history_delete_item,
|
||||
clipboard_history::history_toggle_pin,
|
||||
clipboard_history::history_clear_all,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue