low-latency Questions

9

Solved

I'm implementing a protocol over serial ports on Linux. The protocol is based on a request answer scheme so the throughput is limited by the time it takes to send a packet to a device and get an an...
Election asked 29/10, 2012 at 16:53

3

Solved

OBJECTIVE: I'm building a FPV robot, I want to control it with a with a webbrowser over a local wi-fi connection. I'm using a raspberry pi 3B+ with Raspbian Stretch. I built my own motor control ...
Couplet asked 8/6, 2019 at 7:23

4

Solved

Let's imagine an hypothetical HFT system in Java, requiring (very) low-latency, with lots of short-lived small objects somewhat due to immutability (Scala?), thousands of connections per second, an...
Viborg asked 30/3, 2012 at 23:15

10

Solved

I'm running several instances of a certain Python script on a Windows machine, each from a different directory and using a separate shell windows. Unfortunately Windows gives each of these shell wi...
Slosh asked 12/9, 2011 at 11:40

2

Solved

I am trying to create a low latency CMAF video stream using FFMPEG. To do so, I would like to enable the lhls option in FFMPEG in order to have the #EXT-X-PREFETCH tag written in the HLS manifest. ...
Garibay asked 21/6, 2019 at 9:34

1

Solved

I am interested in low-latency code and that`s why I tried to configure thread affinity. In particular, it was supposed to help to avoid context switches. I have configured thread affinity using ht...
Bandy asked 16/10, 2020 at 16:16

6

Solved

I started to read famous Martin Fowler book (Patterns of Enterprise Application Architecture) I have to mention that I am reading the book translated into my native language so it might be a reason...
Illuminance asked 24/9, 2019 at 14:19

2

I have a computer which is connected with external devices via serial communication (i.e. RS-232/RS-422 of physical or emulated serial ports). They communicate with each other by frequent data exch...
Magnum asked 1/4, 2013 at 21:32

2

Solved

I'm working on a project on a STM32F4 CPU, generating signals. I have a generic timer on CPU clock (no prescaler) on a STM32 triggering interrupts on overflow, to generate a periodic signal with G...
Tillfourd asked 11/9, 2012 at 13:40

2

Solved

Can Boost ASIO be used to build low-latency applications, such as HFT (High Frequency Trading)? So Boost.ASIO uses platform-specific optimal demultiplexing mechanism: IOCP, epoll, kqueue, poll_se...
Arrington asked 8/6, 2017 at 23:19

2

I am trying to implement an asp.net 2.2 application to serve HTTP requests with the lowest possible latency (not throughput, it's not for production but some sort of a competition). The application...
Angadreme asked 9/1, 2019 at 4:38

9

Solved

All the time you hear about high frequency trading (HFT) and how damn fast the algorithms are. But I'm wondering - what is fast these days? Update I'm not thinking about the latency caused by the...
Biodynamics asked 22/6, 2013 at 22:47

3

Solved

Console application has 3 threads: Main, T1, T2. The goal is to 'signal' both T1, T2 (and let them do some work) from the Main thread in the lowest latency as possible (μs) NOTE: please ignore...
Totaquine asked 29/10, 2014 at 18:7

5

Solved

Can anyone give me the approximate time (in nanoseconds) to access L1, L2 and L3 caches, as well as main memory on Intel i7 processors? While this isn't specifically a programming question, knowin...
Distorted asked 3/11, 2010 at 13:2

2

We run a latency-sensitive system. We found one significant cause of latency: some processes were making blocking DNS lookups to remote nameservers. To mitigate this, we have installed a local cach...
Denishadenison asked 14/2, 2018 at 12:58

2

Solved

I'm a beginner in iOS and I'm trying to design a drum set app with Swift. I designed a view with a single button and wrote the code below, but it has some problems: Some sounds are lost when I to...
Tildi asked 8/1, 2016 at 15:1

1

Solved

I tried reading some articles, but not so clear on this topic. Would someone like to explain me below points: Why use websocket over http what is full duplex communication what do you mean by lo...
Deadening asked 4/7, 2017 at 6:54

2

The code below demonstrates the problem unequivocally, which is: The exact same block of code becomes slower after a busy spin pause. Note that of course I'm not using Thread.sleep. Also note ...
Anticline asked 29/4, 2017 at 14:43

8

Solved

We need to build a server that can communicate with some embedded devices running a variant of Android. We need to be able to send commands to the device, and receive a response. A simple command m...
Subak asked 15/10, 2015 at 0:6

1

The following example code generates a matrix of size N, and transposes it SAMPLES number of times. When N = 512 the average execution time of the transposition operation is 2144 μs (coliru link). ...
Coussoule asked 2/3, 2017 at 20:2

1

So I'm new to ZeroMQ and I am trying to send byte message with ZeroMQ, using a PUB / SUB setting. Choice of programming language is not important for this question since I am using ZeroMQ for commu...
Save asked 8/1, 2017 at 4:19

2

Solved

Are there any reasons why hibernate batching / hibernate.order_updates / hibernate.order_inserts are disabled by default? Is there any disadvantage when you enable a batch size of 50? Same for the ...
Grenada asked 3/1, 2015 at 13:38

5

Solved

My application contains several latency-critical threads that "spin", i.e. never blocks. Such thread expected to take 100% of one CPU core. However it seems modern operation systems often transfer ...
Rikkiriksdag asked 19/9, 2014 at 12:25

1

Solved

From Goetz, Peierls, Bloch et al. 2006: Java Concurrency in Practice 3.1.2. Nonatomic 64-bit Operations When a thread reads a variable without synchronization, it may see a stale value, but at lea...
Recourse asked 14/5, 2016 at 11:55

1

We are changing our current user side MySQL database. We have a website + mobile app for which users around the US query our database. the relevant data is is contained in three tables, and a...
Walters asked 17/4, 2016 at 0:45

© 2022 - 2025 — McMap. All rights reserved.