internal void CreateSyllableBuckets() { if (_syllableBuckets != null) { return; } _syllableBuckets = new SyllableBuckets[TermsPerEntry]; for (int i = 0; i < TermsPerEntry; i++) { _syllableBuckets[i] = new SyllableBuckets(i, new RantDictionaryEntry[] { }); } }
/// <summary> /// Optimizes the table. Call this after writing items to the table or removing items from a table. /// If you're writing or removing multiple items, call this after all the actions have been performed. /// </summary> public void RebuildCache() { if (!_dirty) { return; } _cache.BuildCache(this); CreateSyllableBuckets(); for (int i = 0; i < TermsPerEntry; i++) { _syllableBuckets[i] = new SyllableBuckets(i, _entriesList); } _dirty = false; }