Skip to content

[misc] minor performance & memory improvements - #2120

Merged
felixdittrich92 merged 2 commits into
mindee:mainfrom
felixdittrich92:improvements
Jul 28, 2026
Merged

[misc] minor performance & memory improvements#2120
felixdittrich92 merged 2 commits into
mindee:mainfrom
felixdittrich92:improvements

Conversation

@felixdittrich92

Copy link
Copy Markdown
Collaborator

This PR:

  • multiple after conversion saves some memory instead reverse
  • use scipy connected_components instead of python loop
  • tests: fix minor typo

@felixdittrich92 felixdittrich92 added this to the 1.1.0 milestone Jul 28, 2026
@felixdittrich92 felixdittrich92 self-assigned this Jul 28, 2026
@felixdittrich92 felixdittrich92 added type: enhancement Improvement module: models Related to doctr.models ext: tests Related to tests folder topic: text detection Related to the task of text detection topic: reading order Related to the task of reading order labels Jul 28, 2026
@codecov

codecov Bot commented Jul 28, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 96.98%. Comparing base (247750a) to head (2e9c5b7).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2120      +/-   ##
==========================================
+ Coverage   96.96%   96.98%   +0.01%     
==========================================
  Files         169      169              
  Lines        9619     9611       -8     
==========================================
- Hits         9327     9321       -6     
+ Misses        292      290       -2     
Flag Coverage Δ
unittests 96.98% <100.00%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@felixdittrich92
felixdittrich92 merged commit 5332574 into mindee:main Jul 28, 2026
57 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ext: tests Related to tests folder module: models Related to doctr.models topic: reading order Related to the task of reading order topic: text detection Related to the task of text detection type: enhancement Improvement

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant