Skip to content

Commit 284dbdd

Browse files
author
Dorian Birraux
committed
SocketListen disabled but left in place for posterity
Pre-emptive evaluation add a substantial latency (>300% slowdown). Disabling the code for now and likely forever. Keep the code in place as a post-mortem.
1 parent b5b9fae commit 284dbdd

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

wolframclient/evaluation/kernel/initkernel.m

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -188,8 +188,8 @@
188188
$MaxIdlePause=.001;
189189
$MinIdlePause=0.0001;
190190
$PauseIncrement=0.0001;
191-
$ListenerSupportMinVersion = 12.3;
192-
191+
(*$ListenerSupportMinVersion = 12.3;*)
192+
$ListenerSupportMinVersion = Infinity;
193193
Which[
194194
$VersionNumber < $ListenerSupportMinVersion,
195195
(* Low CPU wait but need synchronous loop. *)
@@ -207,6 +207,9 @@
207207
]
208208
]
209209
],
210+
(* Version with SocketListen, code is cleaner is 3 times slower as the version above.
211+
Possibly during the async events and pre-emptive evaluation.
212+
*)
210213
True,
211214
evaluationLoop[socketIn_SocketObject]:= (
212215
$SocketListener = SocketListen[

0 commit comments

Comments
 (0)