performance Questions
3
Stopwatch stopwatch1 = new Stopwatch();
Stopwatch stopwatch2 = new Stopwatch();
string l = "my test";
string u = "MY TEST";
for (int i = 0; i < 25; i++)
{
l += l;
u += u;
}
stopwatch1.Start(...
Backboard asked 20/12, 2016 at 8:52
4
Solved
I´m trying to improve the load time and performance of my website. To summarize this is the average loading time stats that I get without including Google Tag Manager.
However when I just includ...
Bacon asked 26/3, 2020 at 11:42
2
The following two functions logically do the same thing, but func2, which stores the result in a temporary variable, is slower.
def func1(a):
return a.astype(np.float64) / 255.0
def func2(a):
t...
Puentes asked 27/7, 2024 at 16:26
4
Solved
Unfortunately, the standard C++ library doesn't have a single call for sincos, which gives a place for this question.
First question:
If I want to calculate a sin and a cos, is it cheaper to calc...
Universe asked 13/9, 2013 at 19:38
3
Solved
I came up with the following implementation for the Greedy Set Cover after much discussion regarding my original question here. From the help I received, I encoded the problem into a "Greedy Set Co...
Mesocarp asked 29/10, 2011 at 23:22
4
Solved
Suppose I have a matrix that is 100000 x 100
import numpy as np
mat = np.random.randint(2, size=(100000,100))
I wish to go through this matrix, and if each row contains entirely either 1 or 0 I...
Buroker asked 25/6, 2019 at 15:49
2
Solved
I'd like to see my calls to performance.mark(...) show up on Chrome's dev tools Performance tab. All the documentation I can find online seem to refer to the no longer existing "Timeline" tab, whil...
Maybellmaybelle asked 11/10, 2017 at 16:25
1
I would like to fully understand the meaning of the information about min/med/max.
for example:
scan time total(min, med, max)
34m(3.1s, 10.8s, 15.1s)
means of all cores, the min scan time is ...
Gasometer asked 23/11, 2019 at 19:52
7
Solved
I have a vector of scalar values of which I'm trying to get: "How many different values there are".
For instance in group <- c(1,2,3,1,2,3,4,6) unique values are 1,2,3,4,6 so I want to get 5.
...
Ellisellison asked 5/8, 2013 at 10:56
3
Solved
In this Yahoo article from 2007, the authors argue that static assets should be split across different hostnames because browsers follow a suggestion from the HTTP/1.1 spec to limit parallel downlo...
Spillage asked 23/4, 2011 at 15:37
2
Solved
Based on getting Query Execution Statistics using this extremely useful piece of SQL obtained from this post Most Executed Stored Procedure - Stack Overflow:
SELECT TOP 100
qt.TEXT AS 'SP Name',
...
Ginsberg asked 11/2, 2010 at 9:55
3
Solved
Just out of curiousity (not really expecting a measurable result) which of the following codes are better in case of performance?
private void ReplaceChar(ref string replaceMe) {
if (replaceMe.Co...
Farl asked 20/4, 2016 at 8:22
3
I have a dictionary such as:
d = {'a':'a-val', 'b':'b-val', 'c':'c-long-val'*1000}
And I need to repeatedly access d['c'] as in:
print('value of c is', d['c'])
x_queue.put(d['c'])
some_function...
Lathy asked 6/9, 2019 at 16:2
7
Solved
Just came across the register keyword in C++ and I wondered as this seems a good idea (keeping certain variables in a register) surely the compiler does this by default?
So I wondered is this keyw...
Farnese asked 20/5, 2012 at 16:16
4
Solved
Imagine that I have a List of Cards on my react application. So I will have two components, the <ListCard /> and <Card />.
My doubt is that where I work, when we have something like thi...
Philipphilipa asked 16/1, 2020 at 19:48
7
Solved
I have been stuck with computing efficiently the number of classmates for each student from a course-level database.
Consider this data.frame, where each row represents a course that a student has ...
Lockyer asked 9/7, 2024 at 16:49
1
I am using a surface texture view to display videos. The videos are shown in a carousel which is essentially a view pager.
I have already tried releasing the surface view on the surface gets destro...
Acetophenetidin asked 4/9, 2019 at 7:54
6
Consider something like...
for (int i = 0; i < test.size(); ++i) {
test[i].foo();
test[i].bar();
}
Now consider..
for (int i = 0; i < test.size(); ++i) {
test[i].foo();
}
for (int i = ...
Ambroseambrosi asked 24/10, 2010 at 2:50
7
I had an issue with Postman desktop app and the issue was it became so slow that made it almost useless, I had to restart it after making each request.
Hippocrates asked 29/7, 2020 at 3:3
2
Basic Facts
Lists are mutable (supporting inserts, appending etc.), Tuples are not
Tuples are more memory efficient, and faster to iterate over
So it would seem their use-cases are clear. F...
Tana asked 8/7, 2024 at 2:16
2
I'm having a website, which loads considerably slower, when I'm adding
<meta http-equiv="Content-Security-Policy" content="default-src 'self'">
to the head of the index.html.
After debug...
Piero asked 15/4, 2016 at 20:36
4
Solved
Background
We recently had an issue with query plans sql server was using on one of our larger tables (around 175,000,000 rows). The column and index structure of the table has not changed for 5+ ...
Mezoff asked 9/1, 2015 at 0:13
23
What is the fastest c# function that takes and int and returns a string containing a letter or letters for use in an Excel function? For example, 1 returns "A", 26 returns "Z", 27 returns "AA", etc...
Figment asked 7/5, 2009 at 21:35
5
I have a table 'MSATTRIBUTE' with 3000K rows. I used the following query to retrieve data, this query has different execution plan with same DB data but in different env. in one env, it appears ful...
Ocher asked 23/1, 2013 at 16:28
6
Solved
I'm wondering if there is a performance issue using attribute selectors instead of class selectors.
div.test {}
div[test] {}
P.S. : I'm only interested in CSS performance, not JS.
Mary asked 9/3, 2014 at 15:36
© 2022 - 2025 — McMap. All rights reserved.