Questions tagged as 'desempenho'

2
answers

Functions of cast or direct cast. What is the best option?

In PHP, I realize that it is possible to do some things in a number of ways. One of those that comes to my attention is the functions and functionalities related to type conversion. You can use both the type keyword and use functions. For...
asked by 18.08.2016 / 16:19
1
answer

Use IN or multiple ORs? Which one has the best performance?

I have the following queries in MySQL: 1st: Using multiple OR SELECT SUM(qtd) FROM produtos WHERE qtd > 10 and (status = '0' or status = '4' or status = '7') 2nd: Using IN SELECT SU...
asked by 06.07.2017 / 15:45
1
answer

High memory consumption Swing Java application

I'm developing a Java application, but when I run some tests, I noticed that when I run the application, my memory consumption increases. And according to usage, it always allocates more and more memory. It does not happen to drop the memory use...
asked by 14.04.2015 / 21:08
1
answer

Performance difference between static and shared library

Which is the best in performance? Compile the program using libraries such as MySQL Connector and SQLite as static (getting inside the compiled binary) or as shared getting separated from the binary. In addition, can you use a shared libra...
asked by 13.04.2016 / 03:42
2
answers

Displaying massive amount of data

From the moment we work with a very large amount of data (eg more than 3 million records), and we need to display this data on the screen while the user is using the page, always having the best performance possible. / p> Is partitioning thi...
asked by 26.09.2014 / 15:06
1
answer

What is the most performative way of converting an int to the sum of its digits?

I have a certain int and would like to turn it into another one that is the result of summing your digits in the best possible way. For example: int n = 2601; Should result in 9 since this is the result of 2+6+0+1 . What...
asked by 27.11.2017 / 05:50
1
answer

CSS Performance (CSSOM and selectors)

Given the CSSOM assembly by the browser and parser (read) that is given right to left . I would like to ask a question because I was writing a css in a project and I always have performance issues with me not using Type Selectors and I try...
asked by 28.07.2015 / 18:10
2
answers

When is it recommended to use decreasing indexes?

By default , relational databases create indexes using increasingly ordered binary tree structures. However there is the possibility of creating it in a decreasing way as well. My question is whether (and when) it is recommended to use it. F...
asked by 05.08.2014 / 13:21
3
answers

How to make my program consume less CPU without hindering its execution?

I have a program that reads the memory of a computer process continuously (with while (true) ), but this ends up requiring a lot of CPU, arriving at 20% used, my question is, how to decrease CPU usage without lose performance in the progra...
asked by 13.07.2017 / 23:56
1
answer

Problem loading image in HTML (Performance)

While the script is downloaded and run, the entire parser process of the DOM is blocked, this prevents rendering of the rest of the page. And this applies to every script tag on the page. OnewayIfoundto"work around" this problem was to put all J...
asked by 08.06.2015 / 14:26