Skip to content

Further optimize area fill - #1306

Merged
OverloadedOrama merged 8 commits into
Orama-Interactive:masterfrom
Variable-ind:optimize-area
Aug 31, 2025
Merged

OverloadedOrama merged 8 commits into
Orama-Interactive:masterfrom
Variable-ind:optimize-area

Conversation

@Variable-ind

Copy link
Copy Markdown
Contributor
  • in _color_segments() i used fill_rect() instead of filling pixel by pixel (and then use image.convert_rgb_to_indexed() at the end). This reduces fill time by about half

  • Empty images and selections skip the unnecessary calculations and immediately start filling themselves.

I don't think this breaks something but testing for index mode is required nonetheless 😁

@Variable-ind
Variable-ind marked this pull request as ready for review July 20, 2025 16:26
@OverloadedOrama OverloadedOrama changed the title further optimize area fill Further optimize area fill Aug 31, 2025

@OverloadedOrama OverloadedOrama left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks!

@OverloadedOrama
OverloadedOrama merged commit 0d1f488 into Orama-Interactive:master Aug 31, 2025
@Variable-ind
Variable-ind deleted the optimize-area branch September 1, 2025 05:15
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