Optimize the resource overlap check
A message that is not in the archive (sent off-list or not yet received): [email protected]
Quoted 7 lines · Wei Yang
In
coalesce_windows()it tries to check whether the res1 and res2 overlap. This function do four comparisons, which could be done with one comparisons.Also make the
resource_check_overlap()a common function for others.Signed-off-by Wei Yang <[email protected]>
Signed-off-by Ram Pai <[email protected]>
Bjorn
Would you mind take a look at this one?
Quoted 11 lines · Ram Pai
Quoted 7 lines · Wei Yang
In
coalesce_windows()it tries to check whether the res1 and res2 overlap. This function do four comparisons, which could be done with one comparisons.Also make the
resource_check_overlap()a common function for others.Signed-off-by Wei Yang <[email protected]>Signed-off-by Ram Pai <[email protected]>
Signature · 2 lines
Richard Yang Help you, Help me