** MAJOR speed improvements **
Refactored code for TRUE multithreaded performance startup time decreased from 2 secs to 0.2 secs updates song time decreased from 3 secs to 0.1 secs introduced proper and full error handler, can fully recover from errors (including performing a full restart) implemented web server to push updates and restart application (flask) getting lyrics is truely mulithreaded now, all in memory.
This commit is contained in:
10
testing.py
Normal file
10
testing.py
Normal file
@@ -0,0 +1,10 @@
|
||||
from pynput import mouse
|
||||
from functools import partial
|
||||
|
||||
def click(x, y, button, pressed, foo):
|
||||
return False
|
||||
|
||||
bar = partial(click, foo="bar")
|
||||
|
||||
with mouse.Listener(on_click=bar) as listener:
|
||||
listener.join()
|
||||
Reference in New Issue
Block a user