You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@lucene.apache.org by "kkewwei (Jira)" <ji...@apache.org> on 2020/12/19 04:22:00 UTC
[jira] [Updated] (LUCENE-9645) Delete useless negativeDeltas in
BKDReader$IndexTree
[ https://issues.apache.org/jira/browse/LUCENE-9645?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
kkewwei updated LUCENE-9645:
----------------------------
Description: In BKDReader$IndexTree, `negativeDeltas` seems useless. it will be only be used in `BKDReader.readNodeData()`, we use `negativeDeltas[level * numIndexDims + splitDim]` to check whether the current nod is left or right, but it can be replaced by `isLeft`. (was: In ```BKDReader$IndexTree```, `negativeDeltas` seems useless. it will be only be used in `BKDReader.readNodeData()`, we use `negativeDeltas[level * numIndexDims + splitDim]` to check whether the current nod is left or right, but it can be replaced by `isLeft`.)
> Delete useless negativeDeltas in BKDReader$IndexTree
> ----------------------------------------------------
>
> Key: LUCENE-9645
> URL: https://issues.apache.org/jira/browse/LUCENE-9645
> Project: Lucene - Core
> Issue Type: Improvement
> Components: core/other
> Affects Versions: 8.6.2
> Reporter: kkewwei
> Priority: Major
>
> In BKDReader$IndexTree, `negativeDeltas` seems useless. it will be only be used in `BKDReader.readNodeData()`, we use `negativeDeltas[level * numIndexDims + splitDim]` to check whether the current nod is left or right, but it can be replaced by `isLeft`.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@lucene.apache.org
For additional commands, e-mail: issues-help@lucene.apache.org