jithurjacob / Windows-10-Toast-Notifications

Python library to display Windows 10 Toast Notifications
MIT License
970 stars 168 forks source link

Multiple toaster messages cause significant impact on runtime #57

Open JattMones opened 4 years ago

JattMones commented 4 years ago

Hi, very nifty python package you've compiled here. However, whenever I use multiple toaster messages within a python file (I have one go off for each function in my file), I notice a significant delay when waiting on the next section of the program to run.

I noticed you're using multi-threading to handle the use of multiple messages. Have you considered trying multi-processing instead? Python was not really built to support multi-threading, and it's very hit or miss if it (ever) works as intended. On the other hand, Python was built to support multi-processing. If we could swap the use of multi-threading with processing, I believe this may solve part of the slowdown issue mentioned earlier.

Hyperclaw79 commented 4 years ago

Actually, would be really helpful if we get an async version of it so that we can latch the notifications onto an event loop.