Skip to main content
8 votes
3 answers
331 views

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

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

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

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

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 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

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

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

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, 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

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

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

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

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

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 ...

15 30 50 per page
1
2 3 4 5
6851