diff options
author | Kartik K. Agaram <vc@akkartik.com> | 2022-03-16 21:35:55 -0700 |
---|---|---|
committer | Kartik K. Agaram <vc@akkartik.com> | 2022-03-16 21:38:34 -0700 |
commit | fffcc8b9abf43a69d71c37c92fc149f661dd6da1 (patch) | |
tree | c5a796db79955008c46a61bda54da7e41a47ffb7 /src/task.lua | |
parent | d6554919b1e2e5f598e7997297a358905ee54913 (diff) | |
download | teliva-fffcc8b9abf43a69d71c37c92fc149f661dd6da1.tar.gz |
stop running task.scheduler by default
sieve.tlv is 50% slower (18s vs 12s) with the new function call instrumentation.
Diffstat (limited to 'src/task.lua')
-rw-r--r-- | src/task.lua | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/src/task.lua b/src/task.lua index 9546069..e8bf842 100644 --- a/src/task.lua +++ b/src/task.lua @@ -384,25 +384,6 @@ _M.RECV = RECV _M.SEND = SEND _M.NOP = NOP --- Specific to Teliva -function spawn_main() - task.spawn(call_main) - task.scheduler() - assert(false, "Teliva ran out of stuff to do. Possible causes:\n".. - "- main() returned. Apps shouldn't let this happen.\n".. - "- App is reading past the end of a file (after recv() returned nil)\n".. - "- Some channel is blocked forever.\n") - curses.nodelay(true) - curses.getch() -end - --- This function exists only to make the call to 'main' visible to Teliva. --- Teliva can't yet recognize the caller of indirect calls, as happens with --- task.spawn. -function call_main() - main() -end - ---------------------------------------------------------------------------- ---------------------------------------------------------------------------- -- Tests |