gengliangwang opened a new pull request #27796: [SPARK-31013][CORE][WEBUI] 
InMemoryStore: improve removeAllByIndexValues over natural key index
URL: https://github.com/apache/spark/pull/27796
 
 
   
   ### What changes were proposed in this pull request?
   
   The method `removeAllByIndexValues` in KVStore is to delete all the objects 
which have certain values in the given index.
   However, in the current implementation of `InMemoryStore`, when the given 
index is the natural key index, there is no special handling for it and a 
linear search over all the task data is performed.
   
   We can improve it by deleting the natural keys directly from the internal 
hashmap.
   
   ### Why are the changes needed?
   
   Better performance if the given index for `removeAllByIndexValues` is the 
natural key index in
   `InMemoryStore`
   ### Does this PR introduce any user-facing change?
   
   No
   
   ### How was this patch tested?
   
   Enhance the existing test.
   
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


With regards,
Apache Git Services

---------------------------------------------------------------------
To unsubscribe, e-mail: reviews-unsubscr...@spark.apache.org
For additional commands, e-mail: reviews-h...@spark.apache.org

Reply via email to