102,755 questions
8
votes
3
answers
331
views
Is immutability useful on non parallel applications?
I like the immutability concept but sometimes I wonder, when an application isn't meant to be parallel, should one avoid making things immutable?
When an application isn't multi-threaded, you aren't ...
17
votes
15
answers
5k
views
How to write code in Visual Studio faster? [closed]
Whenever I start a new software project I spend a good amount of time at the beginning drawing class diagrams and other flow charts to plan out how I see the application working. This part just takes ...
3
votes
0
answers
70
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 ...
0
votes
0
answers
103
views
Vue/Nuxt app loads slowly on client side -- how can I identify and fix performance issues? [closed]
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 ...
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 ...
27
votes
3
answers
37k
views
What is low latency access of data?
What do you mean by low latency access of data?
I am actually confused about the definition of the term "LATENCY".
Can anyone please elaborate the term "Latency".
3568
votes
78
answers
1.2m
views
Why is the Android emulator so slow? How can we speed up the Android emulator?
I have got a 2.67 GHz Celeron processor, and 1.21 GB of RAM on a x86 Windows XP Professional machine.
My understanding is that the Android Emulator should start fairly quickly on such a machine, but ...
52
votes
6
answers
62k
views
How can the C++ Eigen library perform better than specialized vendor libraries?
I was looking over the performance benchmarks: https://libeigen.gitlab.io/benchmarks/
I could not help but notice that eigen appears to consistently outperform all the specialized vendor libraries. ...
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(...
0
votes
2
answers
61
views
Facing performance issue on Android In my Flutter app
Facing performance issue on Android
In my Flutter app, I'm displaying a lot of images in a scrollable view. On Android, the screen freezes for 7–8 seconds, sometimes crashes, and becomes unscrollable. ...
565
votes
15
answers
339k
views
Is there any advantage of using map over unordered_map in case of trivial keys?
A recent talk about unordered_map in C++ made me realize that I should use unordered_map for most cases where I used map before, because of the efficiency of lookup ( amortized O(1) vs. O(log n) ). ...
Best practices
1
vote
2
replies
73
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>...
0
votes
1
answer
269
views
Server load is minimal but website responds poorly
I have VPS on hetzner. Server is located in Germany.
It has 256GB RAM, 6CPUs (12 threads).
I have a file which since yesterday, is requested about 30 times in one second. File has 2 Select, 2 Update,...
3
votes
1
answer
174
views
For loop slower than reduce?
I'm getting very strange timings from this code. At times the for loop runs much more slowly.
var len = 8e6
function *rands(){
for(let i =0; i < len; i++)
yield Math.random()
}
...
Advice
0
votes
1
replies
80
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 ...