perf: remove unnecessary string copy in MSA output - #34
Conversation
📝 WalkthroughWalkthroughA single-line optimization in the MSA output loop removes an unnecessary temporary string copy, replacing a string variable assignment with direct element access for cleaner code. Changes
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: defaults Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🔇 Additional comments (1)
Comment |
bec96f3 to
4a5f1af
Compare
3eb033c to
da9eb17
Compare
4a5f1af to
4e719c3
Compare
da9eb17 to
4184d2b
Compare
4e719c3 to
45b862e
Compare
4184d2b to
a12408e
Compare
45b862e to
40c7fd4
Compare
a12408e to
17442ec
Compare
40c7fd4 to
bfd43bb
Compare
17442ec to
9977f4e
Compare
bfd43bb to
70a4f13
Compare
9977f4e to
25ce8e6
Compare
|
@coderabbitai review |
✅ Actions performedReview triggered.
|
70a4f13 to
72b26fc
Compare
Use it.c_str() directly instead of copying to a new string variable. This avoids an unnecessary memory allocation and copy for each sequence. Closes #33 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
25ce8e6 to
b72c119
Compare
Summary
Remove unnecessary string copy when outputting MSA sequences.
Background
From code review (
research.md§2.1, LOW severity):The code was copying each string to a local variable before calling c_str().
Changes
src/caller.cpp: Useit.c_str()directly instead of copying to a new stringTest plan
Closes #33
🤖 Generated with Claude Code
Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.