From: Maciej S. <m.s...@gm...> - 2006-07-30 20:54:32
|
But we're still using the DB for queries, right? Just not for the cache? I guess I should take a look at your changes. I'll try to do that today, maybe. Also, should I commit my changes, and have you merge the ScanFaster branch with that, or do you want to merge with the current trunk and then I can merge my changes with the new trunk? On 7/29/06, Jimmy Do <cri...@gm...> wrote: > Hey guys, > > So I think I've got the ScanFaster branch working pretty well. Please > check it out and see if you can break it. I'll merge it into the main > trunk if you guys approve. > > Major Changes: > * Faster scanning by storing all IPictureInfos directly into a > List<>. Previously, the database inserts during scans were slowing > things down a lot (about 4 times slower with database inserts). We now > have a separate thread that periodically syncs the current list of > IPictureInfos into a file by serializing it. SQLite is no longer used > for storing the cache because syncing the pictures to an SQLite DB > took about 20 *seconds* for only 60 pictures. With serialization, it > took less than 1 second to sync almost 1000 pictures. > Overall, for around 1900 pictures, scanning went from about 8 minutes > to 3 minutes. > > * New design also results in quicker discovery of missing files upon > startup. For example, close the app, remove all pictures, and start > the app again. Before, if you had a lot of pictures, they would slowly > disappear from the UI. Now, all removed pictures will disappear right > away. > > * Preliminary UI for showing scan progress. > > > Jimmy > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys -- and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Snap-photo-devel mailing list > Sna...@li... > https://lists.sourceforge.net/lists/listinfo/snap-photo-devel > |