johnolafenwa / DeepStack

The World's Leading Cross Platform AI Engine for Edge Devices
Apache License 2.0
675 stars 105 forks source link

CPU usage when idle?? #82

Closed i00 closed 3 years ago

i00 commented 3 years ago

I have a deepstack server running and it constantly consumes ~3% CPU when there are no requests to it ... why is this?... surely it shouldn't be doing anything?

johnolafenwa commented 3 years ago

Hello @i00 , while not processing requests, DeepStack polls for new requests, this loop uses some cpu.

i00 commented 3 years ago

@johnolafenwa, why can't it just process the requests within the web request ... surely this would be much more efficient?

somebody-somewhere-over-the-rainbow commented 3 years ago

@johnolafenwa, why can't it just process the requests within the web request ... surely this would be much more efficient?

fully agree on lower powered machines that polling can be quite heavy on the CPU...