Questions tagged as 'desempenho'

2
answers

How can we get the execution time of a script? [duplicate]

Looking at the Comparing with DateTime class, is the date function more performative? and I did some testing with Daniel Omine's response , but I got results that did not seem to me to be reliable. How can I get the runtime of a PHP scri...
asked by 30.08.2016 / 11:54
1
answer

Different regex strategies to get the same result

I have the following input: Detalhamento de Serviços nº: 999-99999-9999 I need to get the number in a group, for this I would use: Detalhamento de Serviços nº: (\d+-\d+-\d+) But I can not trust whether or not there is the string nº:...
asked by 18.05.2018 / 20:05
1
answer

php vs nodejs performance on websockets server

What I take for granted today is that nodejs is best suited to work with a constant pool of sockets (websockets in this case) because by being single-threaded each new connection generates an extra minimal memory consumption (a few hundred KBs),...
asked by 15.02.2016 / 00:25
1
answer

Temporary variable performance within loop

During college a teacher commented to me that declaring a variable before a loop and reusing it was an economical and more interesting way to do it. For example (in Java): String str; for(Pessoa p : pessoas){ str = p.getNome();...
asked by 13.06.2017 / 22:21
1
answer

Tips for improving the performance of an ASP.NET MVC site [closed]

I participated in DevDay 2015 and had the opportunity to take part in the Roberta Arcoverde lecture on the StackOverflow architecture. I found her approach to performance questioning interesting, including how well she stressed that they use c...
asked by 05.11.2015 / 12:03
1
answer

Difference in performance for simple and for iterator

I have a list of clients and on a certain screen the user can search and edit the clients of the list that is very extensive, comparing these two examples what would be the best to work? Example 1: for (int i = 0, tamI = listAll.size(); i&l...
asked by 23.08.2017 / 15:45
2
answers

C # Difference between BeginAccept and AcceptAsync

What is the difference between the two asynchronous forms? Which has better performance by handling sockets and handling thousands of connections simultaneously? Example for BeginXXX: link Example for XXXAsync: link     
asked by 12.06.2014 / 00:59
1
answer

Difference between compact function and literal array assignment

According to the PHP documentation, the function compact .    For each of the passed parameters, compact() looks for a variable with the name specified in the symbol table and adds it to the output array so that the variable name...
asked by 09.12.2016 / 20:09
3
answers

Concatenation or sequencing of data: Which one performs best?

A few days ago I was writing articles about PHP, in which I was asked about a possible improvement in large scale when developing applications in PHP. The assumption was as follows: Printing data via echo of PHP is extremely used at...
asked by 23.06.2017 / 17:16
3
answers

List best practice, start with fixed capacity or start without limit?

I have a scenario where I will receive a list, or an array, or any other data type of the database where I can know the size of my list before creating it, what is the advantage between newList and the newList2 in my code below? Is there any...
asked by 14.03.2018 / 11:12