Re: [ovs-dev] [PATCH 1/1] python: Add cooperative_yield() API method to Idl.

2021-12-03 Thread Terry Wilson
Thanks! I'll try that. On Thu, Dec 2, 2021 at 3:27 PM Mike Pattrick wrote: > > Hello Terry, > > On Thu, Dec 2, 2021 at 3:52 PM Terry Wilson wrote: > > > > On Thu, Dec 2, 2021 at 2:38 PM 0-day Robot wrote: > > > > > > Bleep bloop. Greetings Terry Wilson, I am a robot and I have tried out > > >

Re: [ovs-dev] [PATCH 1/1] python: Add cooperative_yield() API method to Idl.

2021-12-02 Thread Mike Pattrick
Hello Terry, On Thu, Dec 2, 2021 at 3:52 PM Terry Wilson wrote: > > On Thu, Dec 2, 2021 at 2:38 PM 0-day Robot wrote: > > > > Bleep bloop. Greetings Terry Wilson, I am a robot and I have tried out > > your patch. > > Thanks for your contribution. > > > > I encountered some error that I wasn't

Re: [ovs-dev] [PATCH 1/1] python: Add cooperative_yield() API method to Idl.

2021-12-02 Thread Terry Wilson
On Thu, Dec 2, 2021 at 2:38 PM 0-day Robot wrote: > > Bleep bloop. Greetings Terry Wilson, I am a robot and I have tried out your > patch. > Thanks for your contribution. > > I encountered some error that I wasn't expecting. See the details below. > > > git-am: > error: Failed to merge in the c

Re: [ovs-dev] [PATCH 1/1] python: Add cooperative_yield() API method to Idl.

2021-12-02 Thread 0-day Robot
Bleep bloop. Greetings Terry Wilson, I am a robot and I have tried out your patch. Thanks for your contribution. I encountered some error that I wasn't expecting. See the details below. git-am: error: Failed to merge in the changes. hint: Use 'git am --show-current-patch' to see the failed pa

[ovs-dev] [PATCH 1/1] python: Add cooperative_yield() API method to Idl.

2021-12-02 Thread Terry Wilson
When using eventlet monkey_patch()'d code, greenthreads can be blocked on connection for several seconds while the database contents are parsed. Eventlet recommends adding a sleep(0) call to cooperatively yield in cpu-bound code. asyncio code has asyncio.sleep(0). This patch adds an API method tha

Re: [ovs-dev] [PATCH 1/1] [python] Add cooperative_yield() API method to Idl

2021-07-16 Thread Ilya Maximets
On 7/1/21 8:19 PM, Terry Wilson wrote: > When using eventlet monkey_patch()'d code, greenthreads can be > blocked on connection for several seconds while the database > contents are parsed. Eventlet recommends adding a sleep(0) call > to cooperatively yield in cpu-bound code. asyncio code has > asy

[ovs-dev] [PATCH 1/1] [python] Add cooperative_yield() API method to Idl

2021-07-01 Thread Terry Wilson
When using eventlet monkey_patch()'d code, greenthreads can be blocked on connection for several seconds while the database contents are parsed. Eventlet recommends adding a sleep(0) call to cooperatively yield in cpu-bound code. asyncio code has asyncio.sleep(0). This patch adds an API method tha