]
Tristan Tarrant updated ISPN-8189:
----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request:
SizeCommand unnecessarily unmarshalls keys to count
---------------------------------------------------
Key: ISPN-8189
URL:
https://issues.jboss.org/browse/ISPN-8189
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 9.1.0.Final
Reporter: Tristan Tarrant
Assignee: Tristan Tarrant
Fix For: 9.1.1.Final
The SizeCommand uses cache.keySet().stream().count() to count keys, but if the cache is
using binary storage, this unmarshalls each key.
Using the identityencoder allows us to make this operation much cheaper.