mikemccand commented on PR #15979:
URL: https://github.com/apache/lucene/pull/15979#issuecomment-5045758273

   > > Does the dedup'ing optimize the == case maybe?
   > 
   > It does not -- the current entry point for incoming vectors is here, which 
is per-field, and there is no explicit guarantee that all fields for a doc will 
be indexed in sequence, before moving on to the next doc (perhaps the recently 
added columnar indexing API exercises this).
   >
   > Moreover, there is an expectation that the same array can be re-used to 
pass vectors (since the writer has to own its copy). For now, I've relied on 
full equality checks for de-duping.
   
   OK that's fine we can optimize the common case (N labels on one vector) 
later.  Maybe phase 2 sugar API could do that.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to