summaryrefslogtreecommitdiff
path: root/src/dist.hpp
diff options
context:
space:
mode:
authorMartin Sustrik <sustrik@250bpm.com>2012-04-17 10:48:59 +0200
committerMartin Sustrik <sustrik@250bpm.com>2012-04-18 07:16:00 +0200
commit464e0d5ed87f5e0c7fa10d13075e62307eba075f (patch)
tree8105f2b380dacc9d7d6407f4b04851a1598d8976 /src/dist.hpp
parent3dc909eabddd68ff1b332af1e42978b55a3c17b6 (diff)
Improve efficiency of time measurement in tight loops
This patch instantiate a clock_t instance for each XS socket. Thus, it is shared between subsequent calls to xs_recv (and xs_send). That in turn significantly limits the number of invocations of getimeofday (or similar) when timeouts are used and recv/send is called in a tight loop. Signed-off-by: Martin Sustrik <sustrik@250bpm.com>
Diffstat (limited to 'src/dist.hpp')
0 files changed, 0 insertions, 0 deletions