LRUQueryCache and live docs

Stéphane Campinas <[email protected]>
Newsgroups gmane.comp.jakarta.lucene.devel
Message-ID <jfv4zhqnnndrh6zuzvp3ewtrbk2u3huurfpgwecpuc5morp3n4@mrox6iv7jmvo>
Hello,

In the bitset cache implementations (in LRUQueryCache), I am wondering
why livedocs aren't passed to the `score` methods used to create
bitsets. See [0] for an example.
My understanding would be that passing livedocs would benefit the
creation of the cached bitset:

- faster search since some docs are deleted
- potentially smaller memory usage, e.g., with the roaring bitset
- potentially smaller cost of the FixedBitset

I have checked the mailing list archive, as well as the commit history,
but found no explanation. Could you explain the reason why livedocs
isn't passed to the `score` method ?

Best,

[0] https://github.com/apache/lucene/blob/7fe43de9f6678b41d8894258e1f99a9f38e87689/lucene/core/src/java/org/apache/lucene/search/LRUQueryCache.java#L539-L553
-- 
Campinas Stephane
signature.asc (application/pgp-signature, 833 B)
-----BEGIN PGP SIGNATURE-----

iQIzBAABCgAdFiEEenizR7QLGj2mNf8ZgnJmQjakLC8FAmiB/LcACgkQgnJmQjak
LC+ishAAlI++Hcz6Rjw5a50MX++ll/Wmj9i68wYvty+tYPqa0QtEpGcVZ44Vewvz
Kt/GkpHeL+qxK+X626HaUvNrolhGsImDR9RT+dHs2U+lIP0lZc8TwX6JQARyzwZl
hF6dWoRawS7NnRkLVefdrpC+z0kLjwlZ157SzEDf2tjR+YtZFY6DcCfiV9oYwKpO
jtO0sQTvqhohpl64t4FEVIlBMnEiFJ+DmiFtK+r7hjbORA5VGn6nNecJSJQr4i3S
/3pr3b8WO2/d6YG2AsH00BgL+jZG9CL8Wr67WCe9K+EwGEuaCW5/etrDJDx25fe6
64B1A08FectM85Dj492xAPVrZ4os76iszWgnmPH3KJ48yPbnCHTc+lu6I4xS4yHA
uRatrAlng2NVZ9UWoU8yIdZ0GdN16kuD/sCUH0krTwaV8yGqag/ZwMKfc0QyLug2
3Ue+Wuy0z8uIZTnBSYclB9M9vaQKWPZFclmWtl8rs+A6LDC3C+Xw4gC1RZ+QHhi0
9MT4NRHZIYLyRX92jhMX5N9n5xoIHajQw++TzPIA5NI2a4g9pyfpw0YoWYXHiQcp
1Pd3l5CtxbDM6YoUD6l33MqS/E3NsA7Z7GRWDaBuwaockaIuqTUDNgJhZNKHZsyk
4Iz+g1SM7hbroqxOYAiEi7H3elr3WYV6vlMPI/ow8ZQ7sB6jCT0=
=72Pa
-----END PGP SIGNATURE-----
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.