From 9443f30b7da399e10ad0d870571dd41665e28c69 Mon Sep 17 00:00:00 2001 From: Joe Groff Date: Wed, 9 Nov 2011 15:38:03 -0800 Subject: [PATCH] io.backend.unix: hints on M\ fd refill Trims some low-order dispatch overhead for #376. --- basis/io/backend/unix/unix.factor | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/basis/io/backend/unix/unix.factor b/basis/io/backend/unix/unix.factor index 9f5c4328d8..dc5da7e560 100755 --- a/basis/io/backend/unix/unix.factor +++ b/basis/io/backend/unix/unix.factor @@ -7,7 +7,7 @@ io.encodings math.parser continuations system libc namespaces make io.timeouts io.encodings.utf8 destructors destructors.private accessors summary combinators locals unix.time unix.types fry io.backend.unix.multiplexers -classes.struct ; +classes.struct hints ; QUALIFIED: io IN: io.backend.unix @@ -107,6 +107,9 @@ M: fd refill [ (io-error) ] } cond ; +HINTS: M\ fd refill + { buffered-port fd } ; + M: unix (wait-to-read) ( port -- ) dup dup handle>> dup check-disposed refill dup