Skip to content

Commit c64b429

Browse files
committed
chore: todo optimization
1 parent a8d3276 commit c64b429

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/matcher.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ std::vector<size_t> computeMatch(const CandidateString &subject, const Candidate
2222
const auto subject_size = subject.size();
2323
const auto query_size = query.size();
2424

25+
// TODO optimization for the case that the sizes are 1
26+
2527
// this is like the consecutive bonus, but for camelCase / snake_case initials
2628
const auto acro = scoreAcronyms(subject, subject_lw, query, query_lw);
2729
const auto acro_score = acro.score;

0 commit comments

Comments
 (0)