How to judge the number of buckets for TBucketList

I use TBucketList and TObjectBucketList for all my hash needs, but have never experimented with switching the number of buckets. I vaguely remember what this means from the Data Structures class, but could anyone clarify the nuances of this particular class in Delphi

The following table lists the possible values:

Value Number of buckets

bl2 2
bl4 4
bl8 8
bl16 16
bl32 32
bl64 64
bl128 128
bl256 256
+3
source share
1 answer

TBucketList TObjectBucketList . - . , , . bl2, , 31 , . bl256 . . - , . , 256 .

, TBucketList - -, .

TIntegerBucketList -, . -, TCustomBucketList BucketFor. BucketCount - , , TBucketList. , - , BucketCount , , .

+6

Source: https://habr.com/ru/post/1703206/


All Articles