Memory usage grow on task switching · Issue #62 · harvimt/quamash (original) (raw)

Skip to content

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

@pohmelie

Description

@pohmelie

import asyncio

from PyQt5 import QtWidgets from quamash import QEventLoop

@asyncio.coroutine def Switcher():

while True:

    yield from asyncio.sleep(0.001)

if name == "main":

import sys

app = QtWidgets.QApplication(sys.argv)
loop = QEventLoop(app)
asyncio.set_event_loop(loop)

with loop:

    loop.run_until_complete(Switcher())

Usage grow proportinally to switching speed. I made some big app with awesome 👍 quamash, and saw slow growing for hours of work.

Tested with: