Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Search aggressively for the smallest windows. #12

Merged
merged 2 commits into from
Nov 24, 2023
Merged

Conversation

cubicibo
Copy link
Owner

@cubicibo cubicibo commented Nov 23, 2023

This MR replaces the grouping function that is used to define the windows in which presentation graphics are drawn.
The new algorithm performs a search for a set of two windows that minimizes the total drawing area. The optimal solution may be to split in the middle of a bitmap: in the middle of a sentence!

There is no negative performance impact by this aggressive approach. The current grouping algorithm tends to perform worse as it brute forces a solution on some inferred (and constrained) structure which may be obtained only after several iterations.

@cubicibo cubicibo merged commit cc01ab1 into main Nov 24, 2023
@cubicibo cubicibo deleted the MR/wdminarea branch November 24, 2023 09:32
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.

None yet

1 participant