AdamaJava / adamajava

Other
14 stars 4 forks source link

perf(adamajava): ensure code that calls SAMRecord.getReadGroup() does so sparingly #356

Closed holmeso closed 4 months ago

holmeso commented 4 months ago

Description

The getReadGroup() method in SAMRecord is non-trivial, and there were instances in the code where it was being used carelessly. This PR addresses this by calling the method once and caching the value (where appropriate)

How Has This Been Tested?

Existing tests pass, and regression tests are green

Are WDL Updates Required?

nope

Checklist: