You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "Feng Guo (Jira)" <ji...@apache.org> on 2021/12/16 10:22:00 UTC
[jira] [Created] (LUCENE-10319) Make ForUtil#BLOCK_SIZE changeable
Feng Guo created LUCENE-10319:
---------------------------------
Summary: Make ForUtil#BLOCK_SIZE changeable
Key: LUCENE-10319
URL: https://issues.apache.org/jira/browse/LUCENE-10319
Project: Lucene - Core
Issue Type: Improvement
Components: core/codecs
Reporter: Feng Guo
In LUCENE-10315, I tried to generate a {{ForUtil}} whose {{BLOCK_SIZE=512}}, I thought it could be simple since it looks like i only need to change the BLOCK_SIZE, but it turns out that there are a lot of hard code values...
So this is trying to make all hard code value generated from the BLOCK_SIZE in case we need a ForUtil somewhere else or want to change BLOCK_SIZE in postings in feature.
I tried to make the BLOCK_SIZE = 64 / 256 and all tests passed.
--
This message was sent by Atlassian Jira
(v8.20.1#820001)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org