430 questions
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
3
votes
1
answer
116
views
Unexpectedly poor performance of io_uring for multiple TCP socket writes
I am looking for some guidance on using io_uring for high-fan-out TCP writes.
I have a Rust application that waits for an event in a tight loop. Whenever the event occurs, the same payload needs to be ...
Best practices
1
vote
2
replies
43
views
Is there a way to force iFlip mode from my application?
We have created a UI framework using DirectX and Win32 APIs. Recently we started using iFlip mode. But with iFlip mode DWM automatically switches back to iFlip mode from composited mode, when a popup/ ...
1
vote
0
answers
103
views
How can I efficiently share high-frequency tick data between two local C++ processes using shared memory?
I'm building a high-performance tick simulator in C++ that generates market-like ticks (up to 65,536 per second). Now, I want to send these ticks to another local process on the same Linux machine in ...
0
votes
0
answers
98
views
High Latency with m3u8 Live Stream in ExoPlayer Compared to TheOPlayer
I'm working with live HLS streaming using an .m3u8 URL. I'm observing a significant difference in latency between two players:
My Setup:
TheOPlayer (Web): Achieves a live latency of around 2.5 to 3 ...
2
votes
1
answer
122
views
Understanding the reasoning behind periodic latency spikes on EC2 instance ( 50 ms )
While debugging a latency issue in our software, I stumbled into a behaviour which is quite puzzling to me. Here's the code
#include <iostream>
#include <thread>
#include <atomic>
#...
0
votes
1
answer
89
views
How to profile/monitor a KDB tickerplant to trace causes of a slow tickerplant?
I'm trying to use KDB as a low-latency pub/sub message broker that persists all messages in a queryable format.
However, I'm noticing the latency from when the tickerplant receives a message (i.e. ...
1
vote
1
answer
49
views
Why buffer size of boost::asio::serial_port::async_read_some affects function speed?
I have a USB device that replies {0x00 0xFF 0x01 0x03} when you send him {0x00,0xFF,0x01,0x02}. I'd like to implement a ping test, sending commands and computing an average response time.
Here is my ...
3
votes
0
answers
111
views
How to optimize audio playback for lowest latency using the Waveform API?
I'm working with a 2-channel, 32-bit float, 44100 Hz audio format and using float chunks[2][2048*8] for smooth playback. Currently, this chunk size is the smallest that can play without distortion, ...
2
votes
1
answer
319
views
Is it possible to copy from native memory to a ByteBuffer using the new FFM API without producing temp objects?
We have an open-source project on GitHub called CoralRing using sun.misc.Unsafe that we are migrating to the new Foreign Function & Memory (FFM) API. For our particular use-case (low-latency ...
0
votes
1
answer
152
views
Fast Communication between Python Threads
I am working on an audio application, where all functions execution times in the "audio loop" need to be << 1ms. I am aware that Python is not the right programming language for this ...
0
votes
2
answers
206
views
When is virtual dispatch faster than function templates in C++ runtime?
Most knows that template meta programming is in general faster than virtual dispatch in C++ due to types of templates were decided in compile time while virtual functions required runtime lookup on ...
-3
votes
1
answer
81
views
MySQL Performance Issue: Initial Query Slow After Period of Inactivity but Fast on Subsequent Queries
I'm experiencing a performance issue with MySQL when deploying my application to a live server. The problem occurs when creating a short link for the first time after a period of inactivity. ...
1
vote
2
answers
168
views
Numba njit making function call involving long expressions extremely slow
I am writing a finite volume code to solve the inviscid, compressible Euler equations. As a part of this, I am performing what is known as the Cauchy-Kovalevskaya process. A code snippet is given ...
0
votes
1
answer
353
views
Why is my performance so low with Aeron, 90th percentile less than 5ms throughput is only 2k
I wrote a simple test for Aeron
one client, one server, the client sends data to the server, then the server sends it back and counts the elapsed time.
The final result is much lower than I expected, ...
1
vote
0
answers
124
views
Stock tick-data over Web sockets from Broker to browser with a middle node.js server
We are creating a trading web app with a node.js backend and react front end.
This app will be able to view tick data and place trades using broker's APIs.
Broker's APIs give stock quotes over ...