Questions tagged as 'desempenho'

1
answer

Is it possible to run an app running on a real device? [closed]

I'm afraid of running my app under development on my device. Can anyone tell me if that hurts performance, leaves lots of junk, leaves open and vulnerable ports in it?     
asked by 27.01.2015 / 20:44
1
answer

Performance differences between structs and classes

I know the difference of structs and classes is that structs has its public members by default, and that structs belong to C (but nothing prevents from using in C ++). In practice when creating an object for classes or a...
asked by 20.12.2017 / 12:09
1
answer

What can cause EF performance to fall in this scenario?

I've been doing a data import for a project in ASP.NET MVC 5 with EF 6.1 and SQL Server 2008 where the source Import data was a txt file. The file record lines were not very large but contained a certain amount of information to proce...
asked by 20.06.2014 / 03:11
1
answer

Exceptions cause performance problem?

When working on an application whose performance is important, we recommend NOT USE exceptions . With this comes the question " what makes exceptions so much for performance? " In practical terms what is the need to use noexcept in...
asked by 03.10.2018 / 14:33
1
answer

Should I avoid operations between constants in a loop?

In C ++ is there any sort of optimization or caching that prevents the same mathematical operation between constants from being repeated, especially in loops , thus decreasing application performance? For example: for (int i=0; i<=100;...
asked by 23.04.2018 / 00:56
3
answers

Why is array_shift considered to be a lentissima function?

According to the Manual, array_shift removes the first element from the array. I've seen a lot of criticism from the internet as to how to perform this function, since it reordered the entire index of the array with each removal, thus...
asked by 03.03.2015 / 14:22
0
answers

C ++ overhead in the method header

I've been analyzing the performance of a DirectX renderer through the Performance Profiler tool of VS2015 and it pointed me to an overhead in the header of a much-requested renderer method, as shown below: Parameters are passed by refer...
asked by 09.09.2016 / 19:52
9
answers

Best practice for if

Which of the two code options performs better? I'm going to display a very simple example, there's usually more code inside if . A) string mensagem = "OI"; if(exibirAdeus) mensagem = "Adeus"; B) string mensagem = ""; if(exi...
asked by 03.02.2014 / 12:16
2
answers

Calculate how long it takes to perform a function

I have to create a function in JavaScript that takes all the id's from a table and makes a draw with id's of the same table so that a same id does not fall with itself, and that there is a possibility that this id can being in the other "...
asked by 26.03.2015 / 14:56
1
answer

Why should not iterate a hashmap?

I've been doing a project and one of my colleagues mentioned that iterating hashmaps is something to avoid and instead should use hashmap . However, I think the hashmap's versatility of being able to save strings as a key allows you to...
asked by 10.01.2018 / 21:25