@@ -178,10 +178,8 @@ static void merge_methods(Vector<DocData::MethodDoc> &p_to, const Vector<DocData
178178 DocData::MethodDoc *to_ptrw = p_to.ptrw ();
179179 int64_t to_size = p_to.size ();
180180
181- SearchArray<DocData::MethodDoc, MethodCompare> search_array;
182-
183181 for (const DocData::MethodDoc &from : p_from) {
184- int64_t found = search_array. bisect (to_ptrw, to_size, from, true );
182+ int64_t found = p_to. span (). bisect <MethodCompare>( from, true );
185183
186184 if (found >= to_size) {
187185 continue ;
@@ -206,10 +204,8 @@ static void merge_constants(Vector<DocData::ConstantDoc> &p_to, const Vector<Doc
206204 const DocData::ConstantDoc *from_ptr = p_from.ptr ();
207205 int64_t from_size = p_from.size ();
208206
209- SearchArray<DocData::ConstantDoc> search_array;
210-
211207 for (DocData::ConstantDoc &to : p_to) {
212- int64_t found = search_array. bisect (from_ptr, from_size, to, true );
208+ int64_t found = p_from. span (). bisect (to, true );
213209
214210 if (found >= from_size) {
215211 continue ;
@@ -234,10 +230,8 @@ static void merge_properties(Vector<DocData::PropertyDoc> &p_to, const Vector<Do
234230 DocData::PropertyDoc *to_ptrw = p_to.ptrw ();
235231 int64_t to_size = p_to.size ();
236232
237- SearchArray<DocData::PropertyDoc> search_array;
238-
239233 for (const DocData::PropertyDoc &from : p_from) {
240- int64_t found = search_array. bisect (to_ptrw, to_size, from, true );
234+ int64_t found = p_to. span (). bisect (from, true );
241235
242236 if (found >= to_size) {
243237 continue ;
@@ -262,10 +256,8 @@ static void merge_theme_properties(Vector<DocData::ThemeItemDoc> &p_to, const Ve
262256 DocData::ThemeItemDoc *to_ptrw = p_to.ptrw ();
263257 int64_t to_size = p_to.size ();
264258
265- SearchArray<DocData::ThemeItemDoc> search_array;
266-
267259 for (const DocData::ThemeItemDoc &from : p_from) {
268- int64_t found = search_array. bisect (to_ptrw, to_size, from, true );
260+ int64_t found = p_to. span (). bisect (from, true );
269261
270262 if (found >= to_size) {
271263 continue ;
@@ -290,10 +282,8 @@ static void merge_operators(Vector<DocData::MethodDoc> &p_to, const Vector<DocDa
290282 DocData::MethodDoc *to_ptrw = p_to.ptrw ();
291283 int64_t to_size = p_to.size ();
292284
293- SearchArray<DocData::MethodDoc, OperatorCompare> search_array;
294-
295285 for (const DocData::MethodDoc &from : p_from) {
296- int64_t found = search_array. bisect (to_ptrw, to_size, from, true );
286+ int64_t found = p_to. span (). bisect (from, true );
297287
298288 if (found >= to_size) {
299289 continue ;
0 commit comments