102,765 questions
0
votes
1
answer
29
views
Why does heavy object cloning degrade JS performance even when using structuredClone compared to manual optimization?
In a high-performance Node.js service, I noticed that structuredClone() introduces unexpected latency spikes when cloning large nested objects (30–50 KB each). Even switching to manual cloning ...
Advice
0
votes
2
replies
74
views
What prevents Javascript memory leaks in software applications?
I was thinking back to WinJS or WinUI with Windows Universal Applications (WUA) from about 10 years ago. I am wondering how it compiled and avoided typical architecture errors. If there is no memory ...
0
votes
1
answer
127
views
SQL CLR function bad performance comparing to .NET App
In our system we are hashing passwords with the following method.
public static string HashPassword(string password, byte[] salt)
{
if (salt == null)
{
throw new ArgumentNullException($...
-1
votes
0
answers
28
views
Solr 9.9.0 getting slow when there is high load
I'm using Solr 9.9.0 and I recently increased the server RAM from 16 GB to 32 GB, as well as the JVM heap memory to 16 GB. The issue I'm facing is that under high load, both the Solr 9.9.0 UI ...
-8
votes
1
answer
112
views
Are there any plans to expose internal arrays in java.lang.String? [closed]
When trying to performance-tune our XML parsing/validation/binding pipeline, I frequently hit the wall because java.lang.String neither exposes its internal backing array byte[] value / byte coder nor ...
0
votes
0
answers
21
views
How to set alerts on time correlation between logs on datadog?
For example, we have multiple logs that share the same structure:
Order Created { ..."trace": { "order_id":123456, ... }}
Order Paid { ..."trace": { "order_id":...
0
votes
1
answer
47
views
Getting maximum performance on Google Cloud Run for a single thread Python script
I’m running a Google Cloud Run service that exposes an API endpoint performing heavy computational tasks (CPU-bound).
The API will be called very occasionally and for now there will never be ...
-1
votes
0
answers
160
views
Inserting rows into table with geometry column creating awful execution plan [closed]
I am seeding a database by copying over data from another database on the same server. In one of the tables, I am doing an INSERT INTO SELECT statement to bring over a few columns. While existing and ...
3
votes
0
answers
135
views
Why polars join function performance deteriorates so much from version 1.30.0 to 1.31.0?
I noticed a significant performance deterioration when using polars dataframe join function after upgrading polars from 1.30.0 to 1.31.0. The code snippet is below:
import polars as pl
import time
...
Best practices
0
votes
5
replies
185
views
What is the ideal production-grade infrastructure to deploy a Python FastAPI service for computing option Greeks (e.g., Black–Scholes)?
I am building a python service to compute Greek values using python, but I have never worked on python, and I would appreciate advice from the experienced python devs as it would help me a lot.
FLOW
...
3
votes
0
answers
150
views
The cost of non contiguous reads and writes (naive matrix transpose, power-of-2 and other sizes)
I was benchmarking a naive transposition and noticed a very large performance discrepancy in performance between:
a naive operation where we read data contiguously and write with a large stride;
the ...
-1
votes
0
answers
75
views
Django unicorn asgi concurrency performan issue [duplicate]
Edit
Here is a similar question but is specifically about request sync block in async.
I'm just curious more about why the concurrency means they all take substantially longer - at different places in ...
7
votes
1
answer
132
views
Why are prototype extensions so much slower than functions?
I compared the speed of normal JavaScript functions and prototype extensions.
function NormalizeSpace(str)
{
return str.trim().replace(/\s+/g, " ");
}
String.prototype.NormalizeSpace = function ()
...
0
votes
0
answers
147
views
Generation of array that will represent the best case for a quick sort?
I have implemented the quicksort algorithm using the last element as the pivot. Now I want to generate an array for the best-case scenario. This is the function that I wrote, but I am not sure that it ...
3
votes
3
answers
231
views
Performance issues with reading lines from *standard-input*
I need to process 100 Gigabytes of logs in a weird format, then do some analysis on the results.
Initial parts of parsing and CLI done, tried on some test data with 1 GB and it took around a minute. I ...
0
votes
1
answer
44
views
AVR 8-bit: Reusability vs. Efficiency?
My implementation of an API function doing a simple SPI transfer, offering a void *intfPtr parameter to pass a "device descriptor" which I am using to pass the I/O port and pin for SPI chip ...
0
votes
2
answers
71
views
Create an open delegate via MethodInfo of a Value Type instance method with out parameters
I have an instance of ReadOnlyMemory<byte> over a byte[] that I need to convert to ArraySegment<byte>. I'm doing this as part of a major code refactor, and I'm having to adapt an existing ...
3
votes
0
answers
102
views
Azure Cosmos: MongoDB sharded cluster: $in query performance degrades with fewer values
I'm facing a counter-intuitive performance issue with my MongoDB sharded cluster where queries with fewer values in an $in clause are significantly slower than queries with more values.
The Issue:
...
-4
votes
1
answer
62
views
How to precompute nested date ranges efficiently to optimize range filtering and pagination? [closed]
📝 Body
I have a Mongo collection CollectionA where each top-level object contains a nested array of meetings now each meetings have start and end times, for example:
CollectionA = [
{
&...
2
votes
0
answers
280
views
why processing sorted array is faster? [closed]
So there is this original question I assume most of the C++ developers familiar with :
Why is processing a sorted array faster than processing an unsorted array?
Answer: branch prediction
Then I tried ...
0
votes
2
answers
34
views
Alternative of distributed load testing
I need help to find a way to generate stress/capacity testing on webpage.
Server Configuration of Load generator
Processor: AMD EPYC 7R13 @ 3.6 GHz, 4 Cores
Operating System: Ubuntu 22.04 (x86_64)
...
1
vote
0
answers
71
views
How can a removal of a boundary check introduce a BSYNC instruction in a following memory action?
I have some CUDA kernel code doing the following:
half * restrict output;
half v;
// ... etc ...
int i = whatever();
#ifdef CHECK_X
if (i >= 0 && i <= SOME_CONSTANT)
#endif
{
output[...
0
votes
1
answer
80
views
OSRM Indian map extraction fails on 32GB RAM system, partitioned zones still can’t create cross-zone routes
I’m trying to set up OSRM with the latest India map (india-latest.osm.pbf). My system specs are:
RAM: 32 GB
CPU: Intel i7 11th Gen (8 cores / 16 threads)
When I try to extract the map (osrm-extract), ...
0
votes
0
answers
47
views
Sorting items in a Pina store is very slow
I have a Pinia store defined like this:
export type Era = {
id: number
name: string
start_year: number
end_year: number
item_count: number
}
const settingStore = {
eras: ref([] as Era[])...
0
votes
1
answer
77
views
Multi-file and multi-threaded copy in python affects network speed
Im working on a small program where I have three threads with each a task to run: copy a file from A to B using a bash script. One thread copies a 100GB file, then another 2x a 10GB file.
The 100GB ...