Ticket #33 (task)
Opened 2 years ago
Last modified 2 years ago
TnyGtkHeaderListModel rewrites
Status: closed (fixed)
| Reported by: | pvanhoof | Assigned to: | pvanhoof |
|---|---|---|---|
| Priority: | major | Milestone: | A second release |
| Component: | libtinymailui-gtk | Version: | |
| Keywords: | Cc: | dirk-jan.binnema@nokia.com | |
Rewrite the TnyGtkHeaderListModel to use a GPtrArray in stead of a GList internally. This will greatly improve the sorting speed, and might reduce prepending speed. Try to keep the prepend fast and the append slow (if it has to be slow) (you might have sort or shift items after appending, you shouldn't have to sort nor shift when prepending).
Try to pre-allocate the size of the GPtrArray, as this will enhance prepending speed too.
Ticket #30 describes a race condition in the current GList-based code: try to solve this problem. A suggestion is to store the index of the GPtrArray in the iter->user_data in stead of a pointer to the TnyHeader instance (as how it's now). If the problem remains, this will make it much more easy to know about the instance's state.
Attachments
Change History
03/07/07 16:27:45: Modified by anonymous
- status changed from new to closed.
- resolution set to fixed.
