This repository has been archived by the owner on Dec 16, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Benchmark iterator, avoid redundant queue, remove managers. #3119
Merged
brendan-ai2
merged 77 commits into
allenai:master
from
brendan-ai2:speedups-single-queue
Aug 29, 2019
Merged
Changes from 76 commits
Commits
Show all changes
77 commits
Select commit
Hold shift + click to select a range
6cb9f2e
scripts
brendan-ai2 20064ee
pass loop
brendan-ai2 d337056
Merge branch 'master' into speedups-timing
brendan-ai2 7ca8e8d
fix
brendan-ai2 4e876fc
timing
brendan-ai2 77a4d13
div by zero fix
brendan-ai2 5e735f9
fix
brendan-ai2 8a31485
fix
brendan-ai2 492a6cf
fix
brendan-ai2 fb5bc92
fix
brendan-ai2 9da4d81
fix
brendan-ai2 f46eb3f
fix
brendan-ai2 15c0759
fix
brendan-ai2 00dad6f
fix
brendan-ai2 eb37282
fix
brendan-ai2 83b0f2b
fix
brendan-ai2 2dd3b51
fix
brendan-ai2 2710899
fix
brendan-ai2 2eca72e
fix
brendan-ai2 bf5d73f
Better debugging
brendan-ai2 5b91c84
Refactoring to avoid need for iterating over reader
brendan-ai2 fa4d57b
dif threads
brendan-ai2 96e8742
Merge branch 'speedups-timing' into speedups-single-queue
brendan-ai2 8937e14
type fix
brendan-ai2 5417c09
pure timing
brendan-ai2 d0931ed
Merge branch 'speedups-timing' into speedups-single-queue
brendan-ai2 c4bfd38
time to first
brendan-ai2 5a664c9
Merge branch 'speedups-timing' into speedups-single-queue
brendan-ai2 281c2f2
Put queue logging on a timer
brendan-ai2 c9f0076
Merge branch 'speedups-timing' into speedups-single-queue
brendan-ai2 3e88e19
Break out QIterable
brendan-ai2 b2645b8
Add test
brendan-ai2 c93bf8b
Access queue directly
brendan-ai2 c02cbd1
cleanup, add arguments
brendan-ai2 b389bfa
more cleanup
brendan-ai2 37c6fd6
cleanups
brendan-ai2 fe7e2df
Delete benchmark iter
brendan-ai2 d1668e0
Add example usages
brendan-ai2 635c0bc
Merge branch 'master' into speedups-single-queue
brendan-ai2 83d5ed9
Remove manager, use daemon processes, ball of hacks
brendan-ai2 cd61b39
adsjklafdskljgflkjfd
brendan-ai2 ac13bbb
infligh items
brendan-ai2 49688a6
Fix
brendan-ai2 d6a3b9a
bring back tests
brendan-ai2 acb4747
remove debugging
brendan-ai2 f7d9253
hcks
brendan-ai2 dc970c7
Reuse buffers
brendan-ai2 d6fd1e2
Revert "Reuse buffers"
brendan-ai2 8962e18
Cleanups
brendan-ai2 058ee7a
config fix
brendan-ai2 93d921a
deadlock stab
brendan-ai2 078a563
Merge branch 'speedups-single-queue' of github.com:brendan-ai2/allenn…
brendan-ai2 a1b269b
fewer workers
brendan-ai2 ba21113
Merge branch 'master' into speedups-single-queue
brendan-ai2 33ba898
lint
brendan-ai2 ff9432c
Respond to feedback
brendan-ai2 49fd2d9
stray comma
brendan-ai2 290e816
Update another reference
brendan-ai2 f5fbc2d
Merge branch 'master' into speedups-single-queue
brendan-ai2 afcd9ca
Merge branch 'master' into speedups-single-queue
brendan-ai2 cf0e22a
Merge branch 'master' into speedups-single-queue
brendan-ai2 f2c546b
Merge branch 'master' into speedups-single-queue
brendan-ai2 45bb1de
Merge branch 'master' into speedups-single-queue
brendan-ai2 5e51a43
Merge branch 'speedups-single-queue' of github.com:brendan-ai2/allenn…
brendan-ai2 68e9168
Fix crashes on linux
brendan-ai2 21553fe
Remove redundant closes and joins
brendan-ai2 5b57987
Better comment
brendan-ai2 9313908
Better comment
brendan-ai2 ac720d5
Merge branch 'master' into speedups-single-queue
brendan-ai2 df4cc2d
fix lint
brendan-ai2 31ab0db
Merge branch 'master' into speedups-single-queue
brendan-ai2 7497ed6
Isolate weird test
brendan-ai2 f9a4178
combine
brendan-ai2 c5a9cde
RAII
brendan-ai2 e5e885e
Replace code
brendan-ai2 71425e1
Merge branch 'master' into speedups-single-queue
brendan-ai2 dc23b04
Merge branch 'master' into speedups-single-queue
brendan-ai2 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@joelgrus, last bug should be fixed now. It was a nasty race in the tests due to the stray child processes. I ended up using
__del__
here for that. I know that usingwith
is preferred in Python, but I'm not sure we have that as an option given that we're attempting to fit theIterable
interface. We aren't holding any circular refs here, so this should be safe, IIUC. Certainly it fixes the problem empirically. Any concerns?There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if it works, I have no concerns 😇
(I am somewhat far from this code at this point, and I'm not really a multiprocessing expert)