Hello,
The appended small 12-line patch allows to sort bases also by variation count and comment count from the maintenance window. I remember a discussion whether to allow column sorting in the game list window. When sorting a base it is now done in three steps. In the first the index is resorted and in the second the games are updated and written to the disc. The first two are done when sorting is called in the maintenance window. The first step takes for 5.000.000 games around 5 seconds. The second writes the index. As a third step a user should compact the game file to enforce its recreation. Otherwise any search over all games will be slow, because subsequent games are not in the same game block. So sorting columns would have a reasonable performance and can be implemented in two ways: The first try is simply to reuse this first step above but not making it persistent. The problem in large bases then is that searching will be slow, because the games are distributed randomly in the game file. The second solution would be to add a mapping filter as soon as a user sorts games in the gamelist window. The advantage is that this is invisible to the search algorithms. The price is that it will cost around 20 MB memory for a 5.000.000 database. But I am not sure whether sorting is really necessary. I would use it only to get commented and top-rated games to the top of the list, but this I get also by sorting the base after each import of new games. Gerd
sort.patch
Description: Binary data
------------------------------------------------------------------------------ The ultimate all-in-one performance toolkit: Intel(R) Parallel Studio XE: Pinpoint memory and threading errors before they happen. Find and fix more than 250 security defects in the development cycle. Locate bottlenecks in serial and parallel code that limit performance. http://p.sf.net/sfu/intel-dev2devfeb
_______________________________________________ Scid-users mailing list Scid-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/scid-users