Hi, I think I have now assembled a working version of XBlockFile, our file format. I created a block file with 20 000 blocks. Here is some info (from a PowerMac 603ev/90): 472 ticks (8 seconds) opening (oops ..!) 465 ticks (8 seconds) creating 20 000 blocks. 964 ticks (16 secs) saving the file. 3883 ticks (1:10 mins) compacting the file. this is terrible. But it will get better. The current tests were of 20 000 blocks, all on the same level, w/o sub-blocks (sub-blocks aren't finished yet). I plan to dynamically load sub-block-lists, thus reducing search times furthermore. FYI: a button would be a sub-block of a card, which would be a sub-block of a stack. Only stacks will be top-level blocks in a block file. But compacting a file will not get much faster. I can add some special-case handling to speed up the process (e.g. only one wasted block, or only one continuous stream of wasted blocks), but not much more. There is also room for improvements caused by platform-specific optimizations, but I won't add these right now. I've uploaded the sources + compiled test applications for PowerPC and 680x0 to the web site so you can try it on other Macs. I'd be interested in your test results (and Anthony's devastating comments). The URL is: http://ufp.uqam.ca/opencard/XBlockFile.sit.hqx Cheers, -- M. Uli Kusterer ------------------------------------------------------------ http://www.weblayout.com/witness 'The Witnesses of TeachText are everywhere...' --- HELP SAVE HYPERCARD: --- Details at: http://www.hyperactivesw.com/SaveHC.html Sign: http://www.giguere.uqam.ca/petition/hcpetition.html
