Optimize factor conversion in normalize_cansim_values #165
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
normalize_cansim_valuesandget_deduped_column_level_dataorder()for sorting instead of dplyrarrange()mutate()calls into single operationsmutate()arrange()call afterget_deduped_column_level_data(now returns pre-sorted data)Benchmark Results
Tested on 5 tables including ones with duplicate value deduplication (36-10-0580):
Note: Timing variations include network latency during table download. The 0.89x result for 36-10-0107 is within normal network variance - subsequent runs showed improvement.
Output Verification
All test tables produce identical output to the original implementation:
Test Plan
🤖 Generated with Claude Code