Skip to content

Enable new linters and tweak some suboptimal patterns#453

Open
Bisaloo wants to merge 7 commits intoscverse:develfrom
Bisaloo:minor-performance-tweaks
Open

Enable new linters and tweak some suboptimal patterns#453
Bisaloo wants to merge 7 commits intoscverse:develfrom
Bisaloo:minor-performance-tweaks

Conversation

@Bisaloo
Copy link
Copy Markdown
Contributor

@Bisaloo Bisaloo commented Apr 30, 2026

Related to:

Description

I'm profiling SpatialData::readSpatialData() code and while most improvements will come from Rarr (WIP), I noticed some patterns that might also be improved in anndataR.

I also enabled some extra linters so these patterns are not reintroduced in the future.

Each commit focuses on a specific pattern so it may be easier to review this PR commit by commit.

Checklist

Before review

  • Update and regenerate man pages
  • Add/update tests
  • Add/update examples in vignettes
  • Pass CI checks

Before merge

  • Update NEWS
  • Bump devel version

@github-actions
Copy link
Copy Markdown

github-actions Bot commented Apr 30, 2026

🐰 Bencher Report

Branchminor-performance-tweaks
Testbedubuntu-latest

⚠️ WARNING: Truncated view!

The full continuous benchmarking report exceeds the maximum length allowed on this platform.

🚨 1 Alert

🐰 View full continuous benchmarking report in Bencher

Copy link
Copy Markdown
Collaborator

@lazappi lazappi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This look pretty good to me but there are a couple where I'm not sure any performance gain is worth making the code harder to reading.

@rcannood Maybe you should check this and see if you have preferences?

@Bisaloo Bisaloo force-pushed the minor-performance-tweaks branch from 075b4fc to f32f9d6 Compare May 10, 2026 07:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants