From 220e3caa32594e32878bc57e5932b49f327609f9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?IOhannes=20m=20zm=C3=B6lnig?= Date: Fri, 26 Mar 2010 14:35:41 +0000 Subject: more mission and scratchpad svn path=/trunk/externals/iem/iemnet/; revision=13287 --- NOTES.txt | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) create mode 100644 NOTES.txt (limited to 'NOTES.txt') diff --git a/NOTES.txt b/NOTES.txt new file mode 100644 index 0000000..11b9371 --- /dev/null +++ b/NOTES.txt @@ -0,0 +1,18 @@ +scratchpad for the development of iemnet +======================================== + +speed & syslocks +================ +one bottleneck right now is the synchronisation with Pd's +main thread to register a clock callback. +doing a sys_lock() whenever a package arrives will slow down things immensely. + +alternatives: + no sys_lock(): will eventually crash Pd (no option) + use sys_trylock(): this might eventually fail to notify Pd of newly arrived + packets (bad for throughput) + external polling: no syslock needed at all, but more complicated + keep track of clock_callback: "notified" flag tells us, whether we have already + sent a notification which has not yet been handled...no need to notify again + + #4 looks most promising -- cgit v1.2.1