-
Notifications
You must be signed in to change notification settings - Fork 348
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
implement multiprocessing #173
Conversation
@jsvine ping because this is still a draft :) |
not completely sure if I correctly understand the lint errors, could it depends on a newer, stricter flake8 config file parsing? |
No worries, I'll investigate what's happening 👍 |
@aogier Required a few tooling changes, but now linters are working and tests seem to be flagging a meaningful issue (as opposed just to infrastructure problems). Want to look into that? I also had to put the call to |
@aogier, whoops, I can fix the error being raised by |
ok @jsvine thx, let me know whatever should you need |
DEFAULT_MP_POOL_SIZE = 4 | ||
|
||
# TODO: find something which cannot be present in input | ||
END = "KTHXBYE" |
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.
@aogier Could you tell me a bit more about your thinking here (and related uses below), esp. re. how it relates to multiprocessing?
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.
Ah, thank you for the explanation. markovify
currently uses these markers:
Lines 7 to 8 in 2d1fb78
BEGIN = "___BEGIN__" | |
END = "___END__" |
Is that the sort of thing you're aiming to do here, or is it slightly different?
Codecov Report
@@ Coverage Diff @@
## master #173 +/- ##
===========================================
- Coverage 100.00% 97.47% -2.53%
===========================================
Files 6 5 -1
Lines 313 357 +44
===========================================
+ Hits 313 348 +35
- Misses 0 9 +9
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
I will check on coverage stuff asap, now ATM I'm more interested in a beer or two but I'll take a look later or tomorrow :P - I'm also curious on what windows is doing, we will see at timeout I guess, ciao! |
Thanks for the ping, @aogier. Review request received :) I haven't had the time to review closely, but it's in my personal queue. In the meantime, if anyone in the community has feedback, that would also be welcome. |
yeah kid, it looks ur personal queue is non-existent, which is ok, just a bit rude not to forewarn this :) I'll fork asap, thx for your work |
Hi @aogier, although I'm not a fan of that message's tone, I recognize that it has taken me longer than I hoped to prioritize this PR. As is true for many open-source projects, |
no, I am not a fan of such a behaviour when I ask if I can do some work if I can get at least some feedback and yes go w/ it, but then it's a no. My time is free too, my effort is volunteering too, so my friend at least try not to bullshit me by telling me you have it in the todo when that is simply not true (which could be fine, although a little rude given I've spent some time because you told me you could then put some). |
ciao, this PR implements #172 by using
multiprocessing.Process
es. The choice is up to user via aText
parameter, and pool size is ATM locked to core numbers, but I'd want it to be configurable as well. Tests have been extended to basically run twice on either mp options, but I'll review that adding some cross mp/non-mp check.Buut this is definitely ready for a first review so what do you think? Thank you, regards