102,616
questions
0
votes
0
answers
42
views
Most efficient way to use a function repeatedly
The goal is to use a formula, for simplicity given as:
def my_formula(x):
return x + 5
, in other functions, in a way that doesn't waste computation time by constantly having to reference back to ...
3
votes
0
answers
55
views
Why decoding a large base64 string appears to be faster in single thread than in mutiprocessing?
I have a number of large base64 strings to decode, ranging from a few hundred of MB up to ~5 GB each.
The obvious solution is a single call to base64.b64decode ("reference implementation").
...
1
vote
0
answers
14
views
How to Reduce Video Loading Time in React App with Auto-Playing Banner Slider?
I have a React app with a banner slider that plays videos automatically on load. While everything works fine, the loading time of the video is quite slow, affecting the overall performance and user ...
-1
votes
0
answers
11
views
How can the scores from benchmarks be used to assess the performance of actual applications?
I want to evaluate the performance of a specific application on two different CPU servers without actually running on both server. I can obtain scores for both machines under different workloads using ...
1
vote
0
answers
23
views
MySQL Query Slow on Staging Instance but Fast on Local - Performance Issue
Description:
I'm facing a performance issue with a MySQL query that runs efficiently on my local machine (0.02 seconds) but takes a significantly longer time to execute on the staging environment. The ...
0
votes
0
answers
10
views
How to interpret pipeline stall with PMU event {frontend_stall, backend_stall, retired_slots}?
I am learning how to use TMA to profile my program.
After reading a lot of materials, I understand that Intel TMA separates sampling cycles into three parts (simplifying by not considering branch ...
0
votes
0
answers
11
views
Why uops_executed.thread is larger than uops_issued.any? [duplicate]
I am learning how to use PMU event to profile my program.
As I known, uops_executed.thread counts the number of uops to be executed. I think it should be equal to the sum of uops_dispatched.port_*. ...
0
votes
0
answers
32
views
Performance improvement of multiple s.str.split calls
DataFrame has the following columns
NCT Number object
Study Title object
Study URL object
Acronym ...
0
votes
0
answers
9
views
Handling Merged Entities While Maintaining Backward Compatibility with Old IDs
I'm working with entities that have unique IDs and belong to specific groups. I need to support the following functionality:
Merging Entities: Entities within the same group can be merged. After the ...
0
votes
1
answer
12
views
Visual Studio 2015, 2017 & 2019 is extremely slow during forms design
I recently started developing software for a company. However, after replacing my entire setup with (Lenovo P16s laptop with RTX A500, 32" Lenovo monitors and Lenovo docking station) I started ...
0
votes
0
answers
27
views
How can I improve performance of my code? [closed]
I am currently working on a small project (FPS) in unity for learning purposes. I implemented an EnemyBehaviour script to handle the logic of the enemy when it is in the scene. This worked pretty well ...
2
votes
2
answers
94
views
Local variables performance vs global in example
I study performance of C code. OS is Windows 10.
Suddenly I found that the same code runs 2x faster if I use local variables against the same code with global variables.
I can't understand why. Tested ...
0
votes
1
answer
13
views
Unable to Inspect Flutter HTTPS traffic using JMeter
Apache JMeter Version: v5.6.3
App type: Flutter
I'm in the process of creating performance script for a flutter mobile app (.apk). But the respective network traffic is not recording with the JMeter. ...
0
votes
0
answers
45
views
Best practice and performance for processing binary-file to objects and back
The following code samples are working, so I don't have an actual issue, but hope to get some feedback and suggestions for optimisation and best practices. This question was already asked in ...
0
votes
0
answers
20
views
L1 Cache hit 0% for matrix multiplications
Doing large matrix multiplication operation on a GPU. The kernel profiling shows the L1 cache hit as 0%.The matrix stride is over 4k bytes and cache line size is 128 bytes. What could be the possible ...