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

Tighter obj/sec packaging in graphics #59

Open
holzkohlengrill opened this issue May 15, 2020 · 0 comments
Open

Tighter obj/sec packaging in graphics #59

holzkohlengrill opened this issue May 15, 2020 · 0 comments
Assignees
Labels
emma Related to Emma component enhancement New feature or request SP: 8

Comments

@holzkohlengrill
Copy link
Collaborator

holzkohlengrill commented May 15, 2020

Feature Description

Here:

for plottedElement in plottedElements:

                            for plottedElement in plottedElements:
                                if element[Element.addressStart] < plottedElement[PlottedElement.addressEnd] and yAxe <= plottedElement[PlottedElement.yAxe]:

Do the following:

  1. Sort (bisect.insort package function might be helpful) by end address
  2. Iterate over elements (backwards) and check if end address < start address of element to be added
  3. If there is a free space insert the new element otherwise add to a new y level

Like this free space from upper regions will be used (worst cast would be stairs).

Consider also markers for indicating small overlaps (a few bytes).

@holzkohlengrill holzkohlengrill added enhancement New feature or request emma Related to Emma component labels May 15, 2020
@holzkohlengrill holzkohlengrill mentioned this issue May 15, 2020
13 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
emma Related to Emma component enhancement New feature or request SP: 8
Projects
None yet
Development

No branches or pull requests

2 participants