Memory usage grow on task switching · Issue #62 · harvimt/quamash (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Description
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:
- Ubuntu 14.04 / Python 3.4.3 / PyQt 5.5
- Windows 7 / Python 3.5.0 / PyQt 5.5.1
- Windows xp / Python 3.4.4 / PyQt 5.5