Diego> But how much time requires the keylist generation? On my 233MHz P-II it takes about 0.07s to generate the list of keys for a dictionary with 100,000 int keys. Skip Montanaro | http://www.mojam.com/ skip at mojam.com | http://www.musi-cal.com/~skip/ 847-475-3758