Skip to content

捕图stream占用过多 #95

@iremembermyname

Description

@iremembermyname

问题描述:捕图的update_stream为类变量,本意是大家都使用同一个stream。但__init__时使用的是self.update_stream,而非cls.update_stream,导致实际上每个对象都使用了不同stream。在捕图的不同batch_size过多时,就会导致使用大量的流,从而已经导致了多个现网问题。
Image

解决方案:整个类使用同一个update_stream,如下图所示:

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions