Most voted "performance" questions
For questions involving measurement and improvement of code efficiency
Learn more…479 questions
Sort by count of
-
1
votes0
answers102
viewsPays to compress (minify) HTML?
I’m minifying my javascript and css codes and came across the option to minify the HTML codes too, then came the doubt: really makes up for it? Worth saving in size and performance?
-
1
votes0
answers31
viewsng-include improves site performance?
Good afternoon I wonder if I separate html into parts and use ng-include to add them to the index, improve the performance of the site? making it faster Grateful from now on !!…
-
1
votes0
answers156
viewsWhat is the advantage of passing the parameter type in bindValue?
Observing the reply of this question, I noticed that the user recommends to pass the parameters by the function bindValue, indicating the type of parameter. There is a various types of parameters…
-
1
votes1
answer196
viewsIs there a Problem in the Existence of Duplicate CSS, but 100% Equal?
I have an application, where I have a file called "layout" which is responsible for displaying the whole HTML(head, footer, body just to call the side menu which is another file), CSS and Javascript…
-
1
votes1
answer83
viewsProcessing cost between code and database
Among the many forms of development, there was a doubt about what will consume the most of my processing between the same operation in different ways... If I have a function that can be done…
-
1
votes1
answer196
viewsIs using specific data types like SMALLINT and MEDIUMINT instead of INT and marking columns with UNSIGNED an exaggeration?
Speaking of databases, we know that they have several data types to be used in each specific situation. But, following the data types to the letter can be considered an exaggeration in most cases or…
-
1
votes1
answer1360
viewsCriteria for choosing language for specific use considering performance
How to determine the most appropriate programming language for a given function? For example, for AI development Python is more efficient than Java.
performance characteristic-language software-architecture language-independentasked 6 years, 8 months ago Rodrigo S Felix 21 -
1
votes1
answer428
viewsWhat is the best method to load JS files?
I try to work with the code in the way that gives me the greatest possible use of what was written, with this, for every feature that I will need to do in javascript/jQuery I control the individual…
-
1
votes1
answer68
viewsValidation of PHP file
I have a term insertion system via CSV files, example: 09999999;José 08888888;Maria I get this file to move to the server and then I open this file to insert into the database. My problem is that I…
-
1
votes1
answer155
viewsSmallint or int to PK / Primary Key / Primary key?
In languages such as Java, for example, when processing a short int and comparing it with another short int, both are transformed into int. The same occurs in databases like Mysql?
-
1
votes3
answers1286
viewsWhich is faster: NULL or NOT NULL (with an empty string)?
I have a table with fields NOT NULL and they end up being empty. What’s the difference between a NULL (allows null values) and NOT NULL with an empty string ('') within?…
-
1
votes2
answers63
viewsOptimization of database model
I’m making a system for a college and one of the subsystems that I’m building is the student report card. I put for when creating a new discipline in the "discipline" table this discipline is added…
-
1
votes0
answers753
viewsHow to use Eloquent without losing performance (51.39%) in Lumen 5.4?
Developing an API that should handle a high performance website. Doing some tests I verified that the use of Eloquent is downloading the performance of the requests in the database Mysql in 51.39%…
-
1
votes0
answers35
viewsUnderstanding old JAVA code
I have a code here at the company and I need to understand what it really does. By the method Name I found that it removed the characters outside the UTF-8 pattern or something like that, giving an…
-
1
votes0
answers67
viewsDoes the CSS Box-Shadow property affect page performance and element rendering?
I know the property box-shadow is relatively old, and widely used. But when using it in excess, I say when applying box-shadow in 100 elements on the same page I have lost performance? I did this…
-
1
votes1
answer275
viewsPass complex object vs simplest object per parameter
In the method Log there is the type parameter HttpClient. The function only uses the parameter to access the property BaseAddress, which is a Uri. private void Log(string verb, HttpClient…
-
1
votes1
answer124
viewsDifference between using a Stream or Collection
I see that the use of stream Java 8 is recommended for large amount of data. If the data set is small, there is some gain from using only Collection?
-
1
votes1
answer22
viewsHow to store notifications for performance?
Thinking of a system that at first is small and there is a possibility of a large growth in the flow, what would be the most intelligent/appropriate way to store notifications (a la facebook)? In .…
-
1
votes0
answers33
viewspassword_hash vs performance
One of my biggest concerns when I’m developing an application has always been the performance it would have, especially on shared servers, which most of my clients focus on. Micro-optimizations are…
-
1
votes0
answers62
viewsUpload and Insert Performance Test
I’m new to the performance test scenario. I have to do a performance testing on a web system (uses Spring and Angular) where he uploads a file with several entries on each line. I have to use the…
-
1
votes1
answer78
viewsFastest way to calculate a/b+c/d with float
You can operate four floats in the formula a/b+c/d (two divisions and a sum) mathematically equivalent to the formula (a*d+b*c)/(b*d) (three products, one division and one sum). It is known that…
-
1
votes0
answers32
viewsAbout the "waiting time" in requests when the site is loaded (performance)
I was watching the time of Load site, and I realized that the blue bar (which says about waiting), is very big. I would like to know why this happens, if this could be because the server I’m picking…
performanceasked 6 years, 7 months ago Janete Mendes da Silva 31 -
1
votes1
answer94
viewsWhy still use String instead of Stringbuilder in Java?
As many of you may already know, creating StringBuilder can greatly save the performance of our Java applications, as they are much faster than a String. This is due to the fact that the…
-
1
votes2
answers270
viewsUse a constructor with multiple parameters, or create multiple sets?
Amid use a constructor with multiple parameters or give a lot of sets, which of these options is more performative for the compiler, would cost less memory and would be faster?…
-
1
votes0
answers50
viewsComputational performance metrics of a code
I made a time series forecast model, but I need to evaluate the computational performance of this model. I used the time (in seconds) as code below but it is not a good measure. Does anyone know how…
-
1
votes1
answer53
viewsPerform action in all textboxes without having to repeat for each one (C#)
Well, I have a Windows Form program with 35 textboxes,and I want to perform the following action on all of them,: private void txtGSabado5_TextChanged(object sender, EventArgs e) { if…
-
1
votes1
answer33
viewsEfficiency in querys with different schemas [Mysql]
Is there any loss of efficiency making querys in different schemas? For example query 1 is more efficient than query 2? 1: SELECT * FROM SC1.T1 INNER JOIN SC1.T2 ON ... 2: SELECT * FROM SC1.T1 INNER…
-
1
votes2
answers114
viewsIs it worth measuring performance between Java x Kotlin applications?
Going through the Google Developers documentation, I found something pretty cool like: Measure app performance with Android Profiler But knowing that Java and Kotlin are interpreted by the JVM, I…
-
1
votes1
answer88
viewsError when searching large amount of data in Entity framework,
I am putting together a report, and in it there is the option to consult by date period. When I consult with the interval of 30 or 60 days, I can obtain the data, where I group and return. However,…
-
1
votes1
answer75
viewsCreate a table or several in SQL Server?
I have tables in my database: Orcamento, Maquinas, Veiculos and Acessorios. I need to record the costs of each of them, for example each table will be recorded a daily cost I create a table called…
-
1
votes4
answers141
viewsIs there performance gain using . replace() instead of . put() in a Map?
Is there any performance gain using the method .replace() instead of using .put() in a Map. Studying Maps I noticed that the method .put() and .replace() have practically the same function. I made a…
-
1
votes0
answers36
viewsStock modeling for performance in Oracle and sqlserver
A stock table that will be widely accessed where I will have the quantity field being constantly changed with inputs and outputs which is most indicated in the matter of tunning and performance? 1-…
-
1
votes0
answers47
viewsAbsurd performance difference between pygame.surfarray.array3d and array2d
Using the pygame.surfarray to control an image as an array, manipulating any element in an array3d is more than 5 times slower than manipulating an element array2d. See this benchmark: from datetime…
-
1
votes1
answer100
viewsSimplify foreach to update a mongoDB doc that has nested objects and arrays
I want to update the value of the 'shouldSendAlert' key in a mongoDB document that is in the following structure: { "_id" : ObjectId("5c61c4db46d18e1092c5b024"), "service" : "SRVPVD", "menu" : [ {…
-
1
votes1
answer116
viewsHow do you make an array of Labels in C/C++?
It is a fact that exists in Assembly (Nasm) and it is a fact that this is a quick way to follow to a point of the program among several. Here is an example code for x64 where you choose one of five…
-
1
votes1
answer34
viewsQuestions about data listing!
Hello I am developing a project using the Mysqli extension, and in this taking advantage to use some object-oriented functions! I would like to ask a few questions regarding the data listing, are…
-
1
votes2
answers77
viewsPerformance problem when declaring variables
I’m making a code that a very large function, where I declare some local variables with const and let. To improve his reading I’m dividing this function into several small functions. So I ended up…
-
1
votes2
answers120
viewsWhat is the correct place to store the validation messages in a . NET project?
I’m creating a relatively simple class, but I’ve included some validations in its properties. public class Sala : EntidadeBase { #region Enums public enum StatusSala { Disponivel, Reservada,…
-
1
votes1
answer223
viewsHow to run a MERGE object list by returning the Update or Insert Id?
I have the following scenario; I need to make a INSERT or UPDATE from a list of List<PRD_ARTIGO_VARIANTE_VALOR>, my doubt is whether there’s any way I can get past the list of a single time by…
-
1
votes0
answers44
viewsOptimization in competitive programming - C++ - TLE problem
I’m solving a question that asks us to print on the screen the winner id of each test round. The game works as follows: N cards are dealt to P players of a total of G cards. The letter [G - N*P+1]…
-
1
votes2
answers49
viewsDoubts about usability - var e functions - Javascript
I came across a situation that until today had not occurred, my friend was coding and made the following block of code (only simulation) function teste() { teste = true // Ele faz uma verificação if…
-
1
votes1
answer40
viewsFast even random float within range
I did the following lcg (linear congruency generator) to draw unsigned int from 0x00000000 to 0xFFFFFFFF uniformly. Just for testing, I used the seed equal to zero and raffling the first five…
-
0
votes1
answer191
viewsPerformance difference in creating FK Mysql
Can anyone tell if there is a difference in bank performance if I create FK’s before the other fields in the table or vice versa? I heard comments that the ideal is to always leave FK’s as the first…
-
0
votes0
answers62
viewsDetecting Slow Queries in Rackspace’s Mysql
There is an easy way to see the slow queries in Mysql from Rackspace? I tried to those instructions, but they’re very complicated... Original post in English…
-
0
votes1
answer104
viewsMore efficient way to use "Expression" in enhanced "for" cycles
Among the following forms, which the most efficient? ... //assumindo que o método pegaListaPessoas() pesquisa na base de dados todos as pessoas for (Pessoa pAux : pegaListaPessoas()) { //executo…
-
0
votes2
answers51
viewsOptimize Nspredicate with Magicalrecord
First of all follow my model: Classes: @interface MMEAlbum : NSManagedObject ... outras propriedades @property (nonatomic, retain) NSNumber *album_upcoming; @property (nonatomic, retain) NSSet…
-
0
votes1
answer591
viewsHow to optimize memory consumption using Doctrine
I need to read and save in the database two files the first (smallest) has about 49,000 lines (each line will be become a record). I parse this file by creating an instance for the object and then…
-
0
votes2
answers513
viewsMYSQL - Column order and performance
I may be asking a silly question, but come on. The order of the columns in the MYSQL interferes something in terms of performance in some way (whether in writing or in research)? Foreign keys are at…
-
0
votes1
answer66
viewsAre there techniques to reduce the use of memory (on the part of development) regarding the use of javascript?
I would like to know if there is any technique to reduce the use of memory as to the use of javascript. I mean, as to development. I noticed that a certain page that we are developing where I work…
-
0
votes1
answer51
viewsHow to improve Testcase speed in Django?
I’m running a test on Django with only two querys and the timer is taking 1 min and 10 seconds to complete the test. Is there any settings you can adjust to speed up the tests? I’m currently using…