Skip to content

Solve#29

Open
jonathan-d-zhang wants to merge 1 commit into
mpage:mainfrom
jonathan-d-zhang:main
Open

Solve#29
jonathan-d-zhang wants to merge 1 commit into
mpage:mainfrom
jonathan-d-zhang:main

Conversation

@jonathan-d-zhang

Copy link
Copy Markdown

Submission Checklist

  • My file is named submissions/<github_username>.py.
  • My submission runs locally.
  • My output matches the expected output.
  • I did not hardcode the final output.

Approach Description

Task queue with queue.Queue with persistent workers. If building a target makes child nodes ready to build, grab the first one to build it immediately and queue the rest, to skip a queue round-trip. Also, queue targets largest work first to make sure that longer hashes start first.

Also avoids paying thread shutdown overhead by making them daemon threads, but this is kind of whatever.

@github-actions

Copy link
Copy Markdown
Contributor

✅ Results

Metric Value
Speedup 5.92132501981336x
Passed true
Graphs 5

Per-graph results

Graph Speedup Status
chain.json 1.0163570038876266x
diamond.json 13.218796369946883x
realistic.json 21.93079127210516x
tree.json 21.195832304860726x
wide.json 21.139152728155928x

View the leaderboard

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.

1 participant