Skip to main content
We’ve updated our Terms of Service. A new AI Addendum clarifies how Stack Overflow utilizes AI interactions.
Filter by
Sorted by
Tagged with
0 votes
0 answers
22 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 ...
Abhishek's user avatar
-3 votes
0 answers
54 views

Why is only my MySQL client on Windows 11 slow?

I have a brand new computer with Windows 11 and I am facing a performance issue with MySQL I do ovserve on any other machine on the network and I not know how to fix. The MySQL server is running on a ...
user1129682's user avatar
  • 1,113
-5 votes
1 answer
84 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 ...
winne2's user avatar
  • 2,238
-4 votes
1 answer
120 views

How should I efficiently add all pairs in a key-value array to an object?

I have an object obj; and I then obtain an array arr of key-value pairs. Assuming that the key sets of obj and of arr are disjoint (i.e. no key appears in both) - how do I efficiently add all pairs in ...
einpoklum's user avatar
  • 137k
0 votes
0 answers
18 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":...
Mostafa El-Marzouki's user avatar
Advice
0 votes
1 replies
46 views

Does the way a program is written/formatted affect how fast and large it is at compile time?

We all know that there's no wrong way to write code, and infinite possible ways to complete a task. Everyone codes differently. There are of course many ways to shorthand code, so the same code can be ...
Gill P's user avatar
  • 365
0 votes
1 answer
42 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 ...
JoScratcherJo's user avatar
-1 votes
0 answers
104 views

How efficient are pipes and threads in C compared to regular function calls or pure sequential code? [closed]

I’m currently studying Operating Systems at college, and my professor has started teaching us about threads and pipes in C. His teaching style is very practical — he expects us not only to understand ...
Matheus Ferreira's user avatar
-1 votes
0 answers
158 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 ...
Robert Sievers's user avatar
0 votes
0 answers
50 views

Parallel Equations Expansion in TFORM

TFORM is considered a great tool for manipulating large and symbolic equations. In this thread, I’d like to share my optimization problem, which concerns a very simple operation — equations expansion. ...
kozapdh's user avatar
3 votes
0 answers
127 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 ...
Y. Gao's user avatar
  • 1,049
0 votes
0 answers
20 views

FlashList cells rendering blank after EAS build with custom expo-build-properties config plugin

I have a FlashList displaying a complex list of items. To optimize it, I am using getItemType, overrideItemLayout, and keyExtractor. Everything works perfectly in Expo Go and on a local build (npx ...
Mitansh's user avatar
Best practices
0 votes
5 replies
177 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 ...
NOOB DEV's user avatar
1 vote
0 answers
47 views

Vue/Nuxt app loads slowly on client side -- how can I identify and fix performance issues?

I’m working on a Vue/Nuxt project where my client reports that the website is slow — especially when loading a selection window and when fetching JSON data. However, the slowness is not very ...
Umar umar's user avatar
3 votes
0 answers
146 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 ...
Etienne M's user avatar
  • 715
Best practices
0 votes
0 replies
41 views

Why does my Next.js app’s performance drop significantly when using dynamic routes with large datasets and server-side rendering (SSR)?

I'm working on a Next.js 14 app with several dynamic routes (e.g., /product/[id]) that render product details from a large dataset (around 50k+ records) stored in PostgreSQL. I'm using ...
Mina Golzari Dalir's user avatar
-1 votes
0 answers
71 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 ...
user2616166's user avatar
1 vote
0 answers
70 views

Why the inflation time for a custom view is so long in Android using java xml?

problem The time it takes to inflate is around 15ms ~ 8ms for a custom view, which is super long. long startTime = System.nanoTime(); LayoutInflater.from(context).inflate(R.layout.view_profile,...
Nor.Z's user avatar
  • 1,595
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 () ...
Dr. Gut's user avatar
  • 3,335
1 vote
0 answers
50 views

Why does fetch performance degrade over time in JBoss with MariaDB and how to properly configure fetch for direct JDBC Connection?

I’m running an application on JBoss 7 connected to a MariaDB database hosted on a separate AWS EC2 instance (c5.9xlarge). The SQL query execution itself is extremely fast (around 57ms), but when ...
TinGinard's user avatar
  • 387
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 ...
Claudiu's user avatar
0 votes
1 answer
130 views

Is there a way in Laravel to bulk-insert multiple records and get Eloquent models (all inserted fields) returned? [duplicate]

I have a scenario where I need to insert multiple records at once. I want to achieve all two: Bulk insert multiple records at once (performance). Return Eloquent model instances for the inserted ...
Ləman Əmrahova's user avatar
3 votes
3 answers
228 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 ...
nemo nemo's user avatar
4 votes
5 answers
347 views

How to compute the union and intersection of time intervals with covariates by group id?

I am looking for an efficient way to compute the union and intersection of time intervals (start–stop format) by group (id), while keeping the covariates associated with each interval. Each patient (...
Alex's user avatar
  • 43
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 ...
Torsten Römer's user avatar
-5 votes
1 answer
213 views

Scalar product C++ vs Python

I'm writing code that must perform a dot product between a vector b and a matrix C, where the dot is performed between b and each line of C. I made two implementation, one in C++ and one in Python. ...
alexcrespao's user avatar
0 votes
2 answers
70 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 ...
Matt Davis's user avatar
  • 46.3k
1 vote
0 answers
120 views

Why does “Command Buffer Full” appear in PyTorch CUDA kernel launches?

I’m using the PyTorch profiler to analyze sglang, and I noticed that in the CUDA timeline, some kernels show “Command Buffer Full”. This causes the cudaLaunchKernel time to become very long, as shown ...
plznobug's user avatar
  • 143
3 votes
0 answers
101 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: ...
9308's user avatar
  • 31
1 vote
0 answers
20 views

Why does the same YOLOv8n-pose model with different weights have significantly different inference speeds?

I’m testing YOLOv8n-pose models that share the exact same architecture, input size, hardware (GPU), framework, batch size, and precision settings. The only difference between them is the trained ...
Hạnh Nhi Đỗ's user avatar
-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 = [ { &...
LEO_007's user avatar
  • 51
-1 votes
1 answer
32 views

Debugging EAS: find_energy_efficient_cpu never called on Arm heterogeneous platform

I'm testing EAS on an 8-core machine (2 big cores, 6 little cores) with kernel version 6.6. I've verified that the system configuration is correct, but the core EAS function is never called. I've ...
user776231's user avatar
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 ...
OopsUser's user avatar
  • 4,894
3 votes
2 answers
142 views

.NET 8 console application slower after publish

I am confused why my application is somehow slower when I run it by executing the .exe file from the publish folder, compared to running it from Visual Studio debugger (F5). I use .NET 8.0 and this is ...
Viki Theolorado's user avatar
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) ...
QA Helper's user avatar
0 votes
1 answer
191 views

Does source length of SQL functions matter

First, to define what I'm talking about, the "length" of a source is how many characters it has. Having more characters allows improving readability by using more descriptive function and ...
Vladimirs Kacs's user avatar
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[...
einpoklum's user avatar
  • 137k
0 votes
0 answers
39 views

Is there a performance difference between writing bytes to RAM instead of longs?

My single threaded program allocates and initializes a volatile block of memory on an unspecified hardware architecture. It then writes into this block in a loop using a stride equal to the cache line ...
mafu's user avatar
  • 33k
0 votes
1 answer
75 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), ...
MTB PL's user avatar
  • 1
0 votes
0 answers
42 views

How do I render multiple videos performantly?

I'm trying to render a scrollable grid of videos in React Native. Currently, I'm storing the videos as .mp4 files on Google Cloud Storage then fetching and rendering them using react-native-video's ...
dazh's user avatar
  • 1
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[])...
Steve Bennett's user avatar
-2 votes
1 answer
77 views

What means the key in the declaration of a STANDARD internal table?

I see in many existing ABAP programs that standard internal tables are declared without key fields, for instance: TYPES type_itab TYPE STANDARD TABLE OF sflight WITH DEFAULT KEY. DATA itab_0 TYPE ...
Sandra Rossi's user avatar
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 ...
zwep's user avatar
  • 1,340
15 votes
0 answers
614 views

Why does my C++ N-body simulation have a pulsating performance slowdown?

I've been developing a 2D N-body gravity simulation in C++, and I've run into an interesting performance issue. Instead of a stable frame rate, the application's update time systematically pulsates ...
Krish's user avatar
  • 159
1 vote
1 answer
62 views

Java Redison tryLock vs getBucket performance

I am using global redis datastore, with two clusters Region-A and Region-B. Each regional cluster has three redis nodes one primary and two read replicas. I have my service deployed in two regions as ...
Ivan Lymar's user avatar
  • 2,303
3 votes
2 answers
104 views

Does GHC specialize data constructors, or how to design for such a usecase

I'm familiar with the SPECIALIZE pragma, or INLINE/INLINABLE that might enable automatic specialization at the use-site. But those are about specializing functions for type variables taking special ...
ron's user avatar
  • 9,458
0 votes
0 answers
59 views

How to decide the data size handled by each processor/core in SIMD?

I’m learning how to use SIMD (Single Instruction, Multiple Data) for parallel data processing. Suppose I have a large dataset (e.g., an array of 1 million floats), and I want to process it efficiently ...
Catdev's user avatar
  • 1
3 votes
0 answers
109 views

How well can clang 20 infer the likelihood of branches without annotations?

I have a performance-critical C++ code base, and I want to improve (or at least measure if it's worth improving) the likelihood that clang assigns to branches, and in general understand what it's ...
meisel's user avatar
  • 2,605
-2 votes
1 answer
127 views

Is this a valid JavaScript approach for sorting large arrays of unique integers efficiently? [closed]

I’m experimenting with sorting large arrays of unique integers in JavaScript and came up with a simple approach. I’m curious if it’s a recognized pattern or if there are potential pitfalls I might be ...
Aaron's user avatar
  • 1
3 votes
0 answers
101 views

How to avoid a redundant temporary copy when using the collection spread element?

I'm writing an immutable collection type wrapping an array. I would like the collection spread operator to work as efficiently as possible with my collection type. MyCollection coll = new MyCollection(...
Asik's user avatar
  • 22.3k

1
2 3 4 5
2056