Questions tagged as 'desempenho'

2
answers

Difference of performance and situation of use of numerical types

I would like to know the difference between Long , Double , Float , Decimal and Int types, taking into consideration when it is best used in real cases. Ex: "use float in interest as it is ..." . And also the dif...
asked by 13.03.2014 / 15:23
1
answer

Do I need to close the connection on each query?

Currently I have a web application that queries multiple databases in the same controller. For each bank I make a connection at server startup and keep them in a static class where their DAOs have used it and close it in the context destroy of...
asked by 13.07.2017 / 14:50
1
answer

C # .Net blocking or non-blocking?

Does the System.Net.Sockets library, using asynchronous operations such as BeginReceive (), BeginRead (), and BeginSend () work blocking or non-blocking? If I have 100 connections, there will be 100 threads, 1 thread to manage each send and rece...
asked by 09.06.2014 / 23:44
1
answer

SQL Server JOINS vs Subquerys

I was doing some queries, and there was a need to perform grouping of a table that was in a JOIN within the query. For example. Sales table. +----+---------+------------+----------+ | Id | Cliente | Data | Vendedor | +----+---------...
asked by 20.03.2018 / 22:13
1
answer

How to compare relative execution time of fast algorithms?

@Sack asked the following performance questions: What is the most performative way to convert an int to the sum of your digits? What is the most performative way to convert int [] to int? So far, he has got two answers to the first...
asked by 27.11.2017 / 13:35
1
answer

My CSS file is too large and it is difficult to keep readability

My CSS file is close to 10,000 lines. It is getting very complicated to maintain this file. in its version of Development the file "weighs" 170kb and in its minified version, "only" 128kb Some points to consider: Avoid unnecessary network...
asked by 11.02.2016 / 17:09
1
answer

Difference between a blocking language and a non-blocking language

In practice, what is the difference between a blocking language and a non-blocking language? What differences can we see on both the front end and the backend? Using an example, let's imagine an endpoint of an API where something is writte...
asked by 11.04.2016 / 00:03
2
answers

Async / Await with threads (C # 7.2)

I have this code and as you can see I created two examples, Parallel and NotParallel. I was hoping that both of them would return me 3000ms, as both should run async (2000 and 3000) and the total time would be 3000, but the NonParallel, is ta...
asked by 20.04.2018 / 14:24
3
answers

What is Gzip? How does it improve a website?

How exactly does Gzip improve the performance of a website? I wanted to know what it's like under the covers. I've seen that some sites that test the speed of other sites usually check gGzip, but what's this? How exactly does it work?...
asked by 07.02.2017 / 13:40
3
answers

What is the advantage of using array include vs configuration file?

I have observed some codes where the programmer does the following: /** Arquivo A.php */ return array('databaseName' => 'bancoTeste', 'port' => 5208); /** Arquivo B.php */ $configs = include("A.php"); // Acesso as $configs echo $confi...
asked by 11.02.2015 / 12:15