BlockSizer
by Jack Greenfield, NeXT Engineering

Overview

This example demonstrates different usages of the IXStoreFile class of the Indexing Kit such as store compaction, abort,  allocation and block resizing. In particular, it shows the level of efficiency for different combinations (block size, number of blocks, etc.). It allows the user to experiment with different store sizes before implementing a real program.  

Program Organization

Major Classes in the Application
 
Controller	The heart of the functionality of the program.  A subclass of Object. It essentially manages the IXStoreFile instance with operations such as commit, compaction, allocation/free etc. 
 
Other Peculiarities
You need to add libIndexing_s.a into the Libraries folder of PB.project .

Topics Of Interest

How to step through the execution of the IXStoreFile creation
This is done in the Controller class, with the method ping:sender. Note that if you can remove the perform:with:afterDelay:cancelPrevious: to speed up the execution.

Valid for 3.1/3.2

Change History 

01/Sept/93	Created example for Release 3.2.