Re: [Lucene] BYTE_BLOCK_SIZE in class ByteBlockPool

2021-04-05 Thread 陆徐刚
Thanks, Michael. > 2021年4月2日 下午10:22,Michael McCandless > 写道: > > Hmm I don't think the original selection of this size was due to CPU L1 cache > limits. It was more a tradeoff of not wasting too much RAM for tiny indexing > events (e.g. index one small docum

Re: [Lucene] BYTE_BLOCK_SIZE in class ByteBlockPool

2021-04-02 Thread Michael McCandless
Hmm I don't think the original selection of this size was due to CPU L1 cache limits. It was more a tradeoff of not wasting too much RAM for tiny indexing events (e.g. index one small document and then refresh) while still getting benefits of scale for the more common/important high indexing rate

[Lucene] BYTE_BLOCK_SIZE in class ByteBlockPool

2021-04-01 Thread LuXugang
Hi, In class ByteBlockPool , per buffer's default maximum size was set 32KB(2 << 15), is this such choice relevant with CPU L1 cache which cache size is 32KB? If not so, could anyone give some tips?