Questions tagged as 'desempenho'

1
answer

Performance in multi-loop applications

When searching a bit, I found several Java code to calculate the determinant of an array. I passed one of them to javascript and it looked like this: function determinant(A, N) { var det = 0; if (N == 1) { det = A[0][0]; } else if (N...
asked by 16.07.2016 / 13:21
1
answer

Doubts about gzip compression on IIS servers

I'm having a question, I'm hosting kinghost and before activating support I'd like to know if what's going on is really a problem. What happens is that the static files (mainly the css and js ) are not always being delivered. Content...
asked by 15.12.2015 / 11:45
2
answers

Which is more efficient, perform multiple queries or use JOIN?

I have a X table that has my user's data, and I need to return data related to that user to the Y and Z table to the client. I can do this using JOIN or: SELECT attr1, attr2 FROM Y WHERE X_id = id SELECT attr1, attr...
asked by 01.11.2017 / 14:54
3
answers

Calling dozens of classes in a system influences noticeably on application performance?

I'm starting to work with object orientation in PHP and would like to know if the number of classes in a system can interfere with its performance, or if there were to be hundreds of classes in order to really performance could begin to be aff...
asked by 04.01.2016 / 16:18
2
answers

How does optimization -O3 break some programs?

When compiling my own programs, I have the freedom to change some flags of the compiler and start using the -O3 optimization. This optimization can break some programs. I understand that the compiler should do and assume several...
asked by 20.02.2017 / 12:40
2
answers

What is the most efficient way to clean a List (List) with C #?

I have a scenario here where I create a list to check some items, and I need to clear this list inside the loop, and I had some doubts about performance Should I check the list before cleaning? ( .Any() ou .Count > 0 ? ) to not exe...
asked by 12.02.2018 / 10:46
2
answers

Performance in Java repetition loops

What a difference of performance between the three types of ties highlighted below. List<Foo> list = new ArrayList<Foo>(); for (int i = 0; i < list.size(); i++) { //CODE } for (Foo foo : list) { //CODE } Iterator<F...
asked by 31.03.2014 / 16:28
3
answers

ASP.NET MVC Web - How to separate the performance between the modules of a project?

Explaining the doubt. Within my system there are some menus, let's use as example 3, naming them A, B and C, each being a CRUD module with some kind of report. If 300 people are using module A, it will impact the performance of module B, right?...
asked by 29.05.2017 / 01:29
2
answers

Better performance compared to strings

What is the best performance option? And memory allocation? Use option 1 or 2? String text = "ola mundo"; Option 1: If ( Strings.len(text) > 0 ) {} Option 2: If ( text != "") {}     
asked by 10.03.2018 / 11:54
2
answers

Are there "problems" with jQuery's small ones?

For example, some parts of a website, I can not fully tinker with HTML, put the platform locked for "security" and do not let it modify, so I use jQuery / JavaScript to do the modification I need. Does this interfere with website performance? A...
asked by 29.05.2017 / 15:16