Skip to main content

Questions tagged [performance]

For questions pertaining to the measurement or improvement of code and application efficiency.

performance
0 votes
0 answers
19 views

Improving performance of contains method in ASP.NET MVC web application with large dataset

I have an ASP.NET MVC web application using C#, Visual Studio, and SQL Server. This is my code: if (!string.IsNullOrEmpty(Name)) { query = query.Where(x => x.PatientName.Contains(Name)); } The ...
2 votes
1 answer
59 views

Run time depends on code after the measured part

Consider the following C++23 program (online). #include <chrono> #include <cstdio> #include <print> constexpr size_t NWrites = 10000000000; #define DEST_STORAGE static #define ...
0 votes
3 answers
860 views

Unity performance drain of non-visible UI

I've got a game with lots of menus. The menus have their own scripts which I don't neccessarily want to stop, just because the user can't see the menu. This is why I currently just translate the ...
0 votes
0 answers
10 views

How Can I Achieve SVG Design with Canvas Performance in a React Application?

I'm developing a React application that needs to render a large number of elements. I've implemented the rendering using both and . Canvas: Provides excellent performance and smooth rendering. SVG: ...
0 votes
0 answers
6 views

How to get a list of slow mobile web pages without testing page by page?

Our website passes the desktop pagespeed insight test but the mobile version always fails it. We saw the detailed report of LCP failures. But how can we find out which were those slow pages dragging ...
0 votes
1 answer
12 views

How to send multiple requests at once by only 1 Thread in Jmeter

I'm new to JMeter, and I want to create a JMeter script for the below scenario. Thread count - 1 Requests count - 50 Here the requirement is to invoke all these 50 requests by using only one Thread ...
0 votes
0 answers
18 views

Optimizing Code with Bitwise Operators : How Does That Really Work?

How do bitwise operators (like AND, OR, XOR, left shift, and right shift) manipulate binary data at the bit level, and what are some practical examples of their usage in optimizing code performance or ...
5 votes
4 answers
202 views

Efficiently enumerate all subsets with difference constraints in R

I have a vector V of consecutive integers of length l , e.g., 1, 2, 3, 4, 5, 6, 7. I want to find all subsets of size k such that the difference between any two numbers in the subset can be no less ...
0 votes
2 answers
32 views

Performance Counter Report w/ Powershell and Cooked Values

I'm trying to capture available size, remaining size, and a number of logical disk counters for my D:\ drive. however the following are the results I get "Used Space" and "Free ...
0 votes
1 answer
57 views

Why is my performance so low with Aeron, 90th percentile less than 5ms throughput is only 2k

I wrote a simple test for Aeron one client, one server, the client sends data to the server, then the server sends it back and counts the elapsed time. The final result is much lower than I expected, ...
0 votes
4 answers
2k views

Programmatically checking code complexity, possibly via c#?

I'm interested in data mining projects, and have always wanted to create a classification algorithm that would determine which specific check-ins need code-reviews, and which may not. I've developed ...
0 votes
1 answer
24 views

K Means taking a long time to run

I have a dataset that has 3 million records with 15 columns that I'm using for customer segmentation. I've used KMeans and MiniBatchKMeans but it's running even after 45 hours (did not run them ...
-3 votes
0 answers
10 views

Do IoT devices have hardware performance counters (HPC)? [closed]

Are HPC easily accessible or must 3rd party applications be used with special device/root permissions set? How/will it be feasible to collect these HPC values for IoT devices?
0 votes
0 answers
36 views

How to make this delete statement more efficient?

I have a couple of tables. Table_1 looks like this: Customer | Offer ---------|------ 1 | A 1 | B 1 | C 2 | A 2 | C 3 | A Table_2 looks like this: Customer | ...
3 votes
7 answers
4k views

Javascript: Constructor function vs Object Initializer speed

Is there any difference between the run speeds of a constructor function when compared to an equivalent object initializer? For example function blueprint(var1, var2){ this.property1 = var1; ...

15 30 50 per page
1
2 3 4 5
6834