Alexandre Bique

Results 268 comments of Alexandre Bique

> > What If I use the Model as a key/value map? > > That's not what a Model is. What would the key be in your case? This is...

A simple application to illustrate that problem, could be an application which displays all images within a folder in a list view. Take a folder that is packed with a...

I think images on the web is overkill, loading images from disk is enough, you can add a sleep(1s) to simulate slow disk I/O.

> Can reference my project:https://github.com/wuanzhuan/system_monitor. view the src/ui/events_view.slint and src\event_list.rs. the list synchronously support push_back, remove and read cursor. when has 300k+ items it is fluent to sliding the table_view...

> I don't use the vector. It is a intrusive double linked list. Each row is wrapped in Arc. So can freely push、remove and share. It don't need continuous memory...

> I do a test. Only the visible row will call Model 's row_data. So you can load the row's resource when calling the row_data But then how do you...

> > > I do a test. Only the visible row will call Model 's row_data. So you can load the row's resource when calling the row_data > > >...

I've mitigated it using a bunch of LRU caches and: ```rust fn row_data(&self, row: usize) -> Option { let result = self.fetch_row_data(row); if TITAN.library_results_enable_prefetch { for i in 0..TITAN.library_results_prefetch_size {...

This is understood, but when I compile my rust code, this could generate the slint compile commands. So I need to build the app once, then the slint preview will...

> Related also to #267 - if it were declared in a separate file both could pick it up. You may end up with similar complexity as cmake-presets.