View Single Post
Old 07-03-2011, 03:24 AM   #70
yuri_b
Connoisseur
yuri_b will become famous soon enoughyuri_b will become famous soon enoughyuri_b will become famous soon enoughyuri_b will become famous soon enoughyuri_b will become famous soon enoughyuri_b will become famous soon enough
 
Posts: 71
Karma: 592
Join Date: Aug 2010
Device: irex dr800sg DR1000S
Additional problem, we almost forgot about, is indexing.

How it works:
1) At start of indexing it select from data base all files on the SD-card and create linked list of them(Huge memory load).
2) Then it creates linked list of all files on SD-card (Huge memory load)
3) Then for each file on disk it looks for (very slow) corresponding file on database list.
4) Compare it and mark if they different/missed/new
5) For every entry in data base list it apply changes if any.

So to speed up indexing, one should
1) Limit count of items in memory. Limit memory load.
2) speed up search items in database list. IMHO it's useless to select all items from data base and then search it this list, database does this faster.
3) Limit count of file items in memory: limit memory load from file list.


Sincerely
Yura
yuri_b is offline   Reply With Quote