Most voted "performance" questions
For questions involving measurement and improvement of code efficiency
Learn more…479 questions
Sort by count of
-
2
votes1
answer54
viewsMiniprofiler V4 does not render on MVC5 + EF
Good morning, you guys. I installed the MiniProfiler v4 in my project ASP.NET MVC5 to check some slow points, however, the results screen is not rendered in my view - and no error appears in the…
-
2
votes1
answer200
viewsArray to Arraylist conversion difference with "asList" and constructor
What is the difference between these two ways of converting a array? If there is any difference, the same impact on performance? List<String> list = Arrays.asList(meuArray);…
-
2
votes1
answer462
views"unsigned int" and "int," what’s the fastest?
In language C, enter unsigned int and int, what is the fastest type? I know (think) that unsigned can store larger numbers why int reserve a bit (space) for the signal and unsigned no. But which the…
-
2
votes2
answers2434
viewsIn terms of performance, "Character Varying" or "text" in Postgresql?
Before posting this question I scoured the internet to know the differences and performance of each type and I came to the conclusion that I should discuss a little more on this subject here with…
-
2
votes1
answer75
viewsWhat is the most effective way to develop an Html5 or js code?
For example when I want to do an event at the click of the button I can do it in two ways: using the onclick attribute of Html5 <button type='button' onclick='myFunction()'…
-
2
votes2
answers2197
viewsWhat is the most efficient way to clear a list (List) with C#?
I have a scenario here where I create a list to check some items, and I need to clear this list inside the loop, and I got some questions regarding the performance I must check the list before I…
-
2
votes1
answer111
viewsRust difference between Std::ops for normal operators
Hello I am seeking to optimize mathematical operations in my program, exploring the modules of the Rust found the Std:. My question is this:. use std::ops::{Add}; fn main() { let x = 10;…
-
2
votes2
answers66
viewsCost of using exceptions with PHP and Valueobjects
I have always heard that exceptions have a high processing cost and make the application slow. In the specific case of PHP, how much can we abuse the use of exceptions? In the case of data…
-
2
votes0
answers29
viewsAnalyze Java Application Performance
I wonder if there are applications for monitoring transactions for an application made in JSF (JBOSS Server) with SQL Server database. Application is quite slow and this may be due to…
-
2
votes1
answer49
viewsA . CSS for "Above the Fold" and another . CSS for "Below the fold" - Is it worth it?
In terms of performance and maintainability it would be interesting to have 2 files css on the page, one for the content that appears before the fold and one for the content that appears after the…
-
2
votes0
answers208
viewsA var, or Let or const has performance difference for several?
I have seen numerous answers that say it’s just a matter of style, which is good practice due to Hoisting, but I wanted to know numbers (I don’t know how to get them) on the performance aspect.…
javascript variables performance variable-declarationasked 4 years, 8 months ago Paulo Rogério da Silva 54 -
2
votes1
answer150
viewsDoes using or not block definition in simple "if" influence application performance?
Between one line and another there are some doubts that do not change the flow of decisions at all, but perhaps can influence the performance of the application by the amount of extra lines…
-
2
votes2
answers180
viewsFind values in a list that are equal to the index they are in. How to optimize?
I am learning programming with Python 3.6 and participate in a challenge site. I need to find the smallest number whose value corresponds to its index in a list. If the list contains only one…
-
2
votes2
answers1445
viewsUPSERT or UPDATE-INSERT?
Across of that question felt the need to research and understand a little about the UPSERT. I was wondering What blessed command is that? I’ve never seen.. I found some information but it is not…
-
2
votes1
answer79
viewsDetermine the memory consumption
Hello, I’m a beginner in Go and I’m having a hard time determining how much memory the Go code took to execute some code. I made the memory() function that even returns something, but I don’t know…
-
2
votes0
answers115
viewsWhy use translateZ or translate3D in animations made with CSS? Hardware-accelerated animations in CSS?
Nowadays it is quite common to see even in the most simple animation effects websites made with CSS, both with transition as to @keyframes And one thing that has struck me is that several of these…
-
2
votes1
answer1210
viewsSelect with subquery to catch previous record
I have a user readout log structure by reference. As shown below. SELECT L.LeituraID, L.UsuarioID, L.Referencia, L.Leitura FROM Leituras AS L |-----------|-----------|------------|---------| |…
-
2
votes1
answer128
viewsProblem with graph c#
Good morning guys, I’m developing a program in which should be plotted several line graphics(x,y) on the screen, the y axis corresponds to serial port where is connected an Arduino UNO. As an…
-
2
votes0
answers40
viewsCustom line chart
Good morning, I am developing a program in c# that should draw a line chart(x,y) in a picturebox(pcbANALISE) according to the data I have in a list (aquisicaodata[ ]). This chart also has a scroll…
-
2
votes0
answers128
viewsCan requesting CSS within Body speed up page loading and improve rendering performance?
First of all: We know that some requests made within the <head> document blocks page rendering. And we also know that hj on time is possible and allowed to use links de folhas de estilo within…
-
2
votes1
answer111
viewsEfficient method to lower array order in PHP
I’m developing a determinant calculator in PHP In the Matrix class I created some functions, among them the function Calc(order, matrix). This function calls another to lower the array order to…
-
2
votes1
answer161
viewsHow to accurately measure the run time of a function in C++
I am doing a college job and need to measure the run time of a recursive function, but when I do the measurement in nanoseconds most of my data comes back zeroed. Is there any way to do a more…
-
2
votes1
answer139
viewsIn the CPU time equation (Tcpu) what are the number of instructions (IC) and cycles per instruction (CPI)?
Of a slide about computer organization: Performance of instructions A particular programme shall require: a number of machine instructions a certain number of cycles a certain number of seconds…
-
2
votes2
answers62
viewsVolatile and optimization
I’m studying about the type qualifier volatile in C language, and I took a test. In the attached image we have the comparison of two programs written in C. The one on the left has a variable without…
-
2
votes1
answer32
viewsCast in MYSQL X Performance
I’m trying to improve my Sqls in Mysql and PHP, in the analysis I ended up coming to a CAST function is increasing by at least 5X the search time as follows below: CUSTOMERS table where the DATACAD…
-
1
votes1
answer1128
viewsPerformance: Switch or if aligned?
Independent of language, the switch has better performance than an alignment of ifs? If yes: why? if ... elif ... elif ... else ... end switch case ... case ... case ... else ... end…
-
1
votes2
answers180
viewsWhy does the universal selector * have a negative impact on browser rendering?
I was just applying a CSS Reset to my website. I usually use the one suggested by Eric Meyer http://meyerweb.com/eric/tools/css/reset/ . But I was looking at Diego’s suggestion…
-
1
votes2
answers123
viewsPerformance Improvement - Ruby on Rails
I have 3 tables: [users] 1 ------------- n [valuations] n -------- 1 [items] Where evaluation can be positive(evaluation: true) or negative(assessment: false), i need a method that returns all the…
-
1
votes1
answer196
viewsAlgorithm takes 5sec but the page takes 1.5m to load
After calling a process via ajax if ($('#content-recommendation').length) { $.ajax({ url:'/get_content_recommendation/' + gon.item_id + '.js', type:"get" }); } I do this in…
-
1
votes2
answers815
viewsCan a worse cost query be a better performance query?
Context Here at the company we have a very complex query that encompasses several business rules, for presentation in a Workflow and for now I am evaluating it on Sqlserver. The performance of this…
-
1
votes1
answer437
viewsLogical deletion of SQL Server records
We have the culture of making only logical exclusions in the application, keeping 2 fields where 1 is the date of exclusion and another char that gets’S' or 'N'. When we perform searches for deleted…
-
1
votes2
answers691
viewsWhat is the best way to query SQL Server database using a list as input?
I have a question as to how best to address the following problem: I need to query records in an SQL Server table using a list of serial numbers. I know the IN command, but it does not meet, because…
-
1
votes1
answer45
viewsPerformance for multiple domains on a single server
I have 2 domains pointed to the same server(Amazon EC2) using the VirtualHost of Apache. This practice interferes in performance and security or what will influence will be basically the number of…
-
1
votes3
answers73
viewsWhat is the best option to use in relation to performance
I need to make all products disappear from the screen, but I have products that are no longer on the screen. So my question is: If I hide only the products that are visible will perform better?…
-
1
votes2
answers818
viewsWhat is the most efficient way to resize bitmaps on Android?
When a device has smaller screen resolutions, you need to resize the bitmaps to optimize its display on the display properly. The problem is that the use of createScaledBitmap can generate a lot of…
-
1
votes0
answers408
viewsScalability with Java
Currently I hear a lot about how some languages are highly scalable. But how would a scalable system be in Java? That is, a high performance system capable of withstanding millions of simultaneous…
-
1
votes1
answer663
viewsLEFT JOIN with WHERE in the field of the first table OR field of the second table
SELECT COALESCE(tb2.numero_novo, tb1.numero_original) as numero FROM tb1 LEFT JOIN tb2 ON tb2.id = tb1.id WHERE tb1.numero_original = <PARAM> OR tb2.numero_novo = <PARAM> The above query…
-
1
votes2
answers172
viewsQuery Performance in Mysql
I have in my form the option to perform a search for Rg or Cpf. So I got the question about the performance of the query using the following code: SELECT * FROM DADOSPESSOAIS WHERE (Rg = @Rg OR Cpf…
-
1
votes1
answer1219
viewsIncrease PHP/Mysql script performance
Good Afternoon Currently, I have a PHP script that reads a CSV file of 6801 lines, and performs an INSERT as long as there are records. I am currently able to enter 19 records per second. In…
-
1
votes0
answers310
viewsMysql - Performance with 0% efficiency
My Mysql is very slow in queries, but these same queries made on the production server are fast. So moving here I found this screen as circled in red says that the efficiency is at 0% and production…
-
1
votes0
answers99
viewsCan Python be used for heavy lifting?
Good morning, I know that python is not a performative mto language (aims more at simplicity) An example here. But can she take the hit? For example on large servers with a lot of load like…
-
1
votes0
answers79
viewsPerformance php + mongodb + Graphics
Good morning wonderful people, I am beginner in development and I have an issue that has taken my sleep, I am testing a system in php with mongoDB database, in which is generated a graph with…
-
1
votes0
answers168
viewsHow to find out select without Where in one application
Guys I’m having a problem and I can’t identify at which point the Portable is doing a select without Where in a table with many records, someone can help me?
-
1
votes0
answers35
viewsAre there differences in the performance of variables implicitly and explicitly stated?
There are differences in performance of explicitly declared variables? List<int> lista = new List<int>(); And implicitly stated? var lista = new List<int>();…
-
1
votes3
answers1779
viewsMany tables with little data or few tables with lots of data?
I have a bank that will receive a lot of data. I am in doubt whether it is better to organize the data into a few tables with a lot of data or further divide the data into several tables. In which…
-
1
votes1
answer49
viewsCode analysis in production
Hello, I wonder if there is any open source tool for me to analyze memory/processing usage allocated by my methods in production. I would like to know what methods need attention and improvements,…
-
1
votes1
answer374
viewsImprove search performance when there is no record
I have a database with 9551011 lines. It contains addresses from all over the country. When I make an appointment for a certain place, and that address exists in the bank, I can get a return within…
-
1
votes1
answer111
viewsWhat better way to resolve the slowness of reporting?
At a time, I developed a page of reports, users have an option of filters, this working, but as the data in the database are growing this getting slower and do not know what is the best option to…
-
1
votes1
answer140
viewsImproving Script Performance
Guys, I’m doing the following challenge: The following iterative sequence is defined by the set of integers positive where: n -> n/2 (if n is even) n -> 3n + 1 (if n is odd) Using the rules…
-
1
votes3
answers62
viewsMemory and processing - Variables and verification
Is there a big difference for memory and processing in how to perform the verification in these two examples? If yes, why and how they both behave when executing the codes. Method 1: var exam =…