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

Day 19 (Part 2) - Performance Improvement #9

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

Day 19 (Part 2) - Performance Improvement #9

TomPlum opened this issue May 15, 2020 · 0 comments
Assignees
Labels
enhancement New feature or request performance Performance related issue

Comments

@TomPlum
Copy link
Owner

TomPlum commented May 15, 2020

Currently implemented lazy scanning the DroneSystem so that it scans for the beam 1 block at a time. It also stops scanning in the x-direction once its reached the end of the beam.

TractorBeamScan now also searches the current and the last block in-case Santas ship area overlaps two blocks. This saves having to scan 1 block, then 2, then 3... now it only does 1, then 2, then 2 and just 2 forever.

Solution currently taking ~13s to run with logging turned off.

@TomPlum TomPlum added the enhancement New feature or request label May 15, 2020
@TomPlum TomPlum self-assigned this May 15, 2020
TomPlum added a commit that referenced this issue May 15, 2020
@TomPlum TomPlum added the performance Performance related issue label Jul 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance Performance related issue
Projects
None yet
Development

No branches or pull requests

1 participant