102,755 questions
3
votes
0
answers
69
views
TagLib reading slows down after ~1600 items
I have an app getting metadata from a list of songs using TagLib.
It first gets the song id via MediaStore, and send fd to TagLib which dups it and uses it to open a stream to get the metadata and ...
Best practices
1
vote
2
replies
72
views
Is there any performance difference between applying a bunch of CSS classes to each child of an element or using selectors in a CSS file
Let's say I have a table with many many rows:
<ul>
<tr>
<td>column1</td><td>column2</td><td>column3</td><td>column4</td>
<td>...
Advice
0
votes
1
replies
79
views
Stack performance in Flutter?
In my android application, there is a 4X4 board for 2 player and 4 play buttons together. One board square is made of one stack each. And there is 5-7 layers to several widgets on one stack depending ...
Best practices
2
votes
4
replies
59
views
What's the most efficient way to implement an array permutation?
I have a code in Fortran that needs to permute a big array (can contain over million of elements). The code is used for scientific calculations so every ounce of performance that can be squeezed out ...
3
votes
1
answer
116
views
Using REGEXP instead of AND condition
I am writing a query where the user can enter a comma(,) separated value which would be used as an AND condition on a single column - lets say address - for refined search.
For example:
/**
* Search: ...
7
votes
1
answer
271
views
Memory barriers in virtual environments - do they interrupt other cores?
Let's say I call a memory barrier like:
std::atomic_thread_fence(std::memory_order_seq_cst);
From the documentation I read that this implement strong ordering among all cores, even for non atomic ...
1
vote
0
answers
58
views
ANR occurring on low-end Android devices [closed]
I am experiencing ANR(APP not Responding) issues after updating my Android game on the Play Store. The issue occurs primarily on low-end devices. The game is built using Unity, and the same codebase ...
2
votes
4
answers
139
views
Count Common Values between Different 2D Arrays
I have 2 arrays 2d and I would like to compare both and count the common values between them, for instance here is my code:
import numpy as np
def f_m_common(V_R, V_A):
r = len(V_A)
c = len(...
1
vote
1
answer
123
views
why the order of return variables affect the jax jitted function's performance so much?
In jax, you can donate a function argument to save the execute memory and time, if this argument is not used any more.
If you know that one of the inputs is not needed after the computation, and if ...
0
votes
0
answers
17
views
Why does the reduce latency metric look incorrect for binding pull requests in Milvus?
Reduce latency metric looks incorrect for binding pull requests in Milvus
While monitoring Milvus performance metrics, I noticed something unexpected related to binding pull requests.
Specifically, ...
0
votes
0
answers
25
views
Why do read requests fail during collection load and alias switch after bulk insert in Milvus?
Read requests fail or experience latency spikes when loading a bulk-inserted collection and switching alias in Milvus
I’m running a Milvus cluster (v2.5.x) on Kubernetes (EKS) using milvus-operator, ...
Advice
0
votes
10
replies
88
views
Faster algorithm for computing GCD of Faulhaber polynomials
In this MathOverflow question, I made a conjecture about the greatest common divisor of Faulhaber polynomials.
In that question, I considered the Faulhaber polynomials F_n(x), defined by
F_n(x) = 1^n +...
1
vote
1
answer
148
views
Why when I place I/O task before CPU-bound task, runs faster than place I/O task after CPU-bound task?
using System.Diagnostics;
const int TASKS = 100;
var mainSw = Stopwatch.StartNew();
var tasks = Enumerable.Range(0, TASKS).Select(i =>
Task.Run(async () =>
{
await Task.Delay(...
2
votes
2
answers
167
views
Why indexes don't improve performance?
This query uses my indexes according to the plan, however, they do not give any increase in query execution speed. Absolutely.
I've tried a wide variety of indexes, but none have helped. I've ...
Best practices
1
vote
3
replies
68
views
Splitting website css and js files into smaller riles or combining them in 2025
Whilst this question has been asked many times before there are seldom recommendation on it with modern browsers in 2025.
Example:
Total CSS for a website is 200kb.
Total JS is 100kb.
We know the ...