Project comparison onto primary's bars: one item per primary bar, in the
primary's order, so the result occupies exactly the logical indices the chart
already has and adds none of its own.
Neither input is mutated and neither has to be sorted: matching goes through
a time map, which also collapses a repeated timestamp to its last item, the
same rule the DataLayer applies when it merges (sortedUniqueByTime).
Project
comparisonontoprimary's bars: one item per primary bar, in the primary's order, so the result occupies exactly the logical indices the chart already has and adds none of its own.Neither input is mutated and neither has to be sorted: matching goes through a time map, which also collapses a repeated timestamp to its last item, the same rule the DataLayer applies when it merges (
sortedUniqueByTime).