Rework federation merge functions to utilise advantages of Streams #3075
Labels
enhancement
Improvement to existing functionality/feature
federated-store
Specific to/touches the federated-store module
tech-debt
Relates to Technical Debt
Milestone
Currently the merge functions utilised by the federated store don't use any of the Java Stream classes. These could bring performance enhancements due cheaper per element cost to spliterators or simplify code with methods like
concat()
,flatMap()
andreduce()
.Proposal is to refactor/rework these functions to take advantage of the Stream library where applicable. As an example you can merge two streams like:
Originally posted by @GCHQDeveloper314 in #3072 (comment)
The text was updated successfully, but these errors were encountered: