Questions tagged as 'desempenho'

3
answers

Faster way to access properties in a list C #

I have a project that works with a large volume of data, and I need to optimize it to bring results of some calculations in a considerably small time. I know I have several aspects to take into consideration, such as the structure in which the d...
asked by 30.03.2016 / 15:15
2
answers

How to organize the code without losing performance?

Using functions instead of putting the code directly influences the performance of a program? For example: void minhafuncao(){ printf("Funcao"); } main(){ minhafuncao(); } instead of main(){ printf("Funcao"); } I know macros have...
asked by 09.04.2015 / 17:45
2
answers

How to select only the characters I want from a source?

I'd like to decrease the disk's font size so the page loads faster. It is the font of Awesome Font icons. I want to know if there is any tool so I can remove the characters I do not use and leave the font "leaner." For example, if I only use...
asked by 06.09.2017 / 04:36
1
answer

Number of columns influence performance?

When we model a database, can the number of columns interfere with performance? Ex: Tabela1 possui 2 campos, 1 int pk e 1 nvarchar(50) Tabela2 possui 50 campos, 1 int pk e 49 nvarchar(50) Select used for both tables, regardless o...
asked by 27.10.2015 / 13:01
2
answers

list.foreach vs foreach

I have a list with several string , there is a difference between scrolling the list values: This way: ListaString.ForEach(delegate(string str) { Console.WriteLine(str); }); Or this: foreach(string str in ListaString) { C...
asked by 06.08.2015 / 14:01
1
answer

Why performing offloading to the GPU is a good idea?

I'm following a few forums on the internet and I realize that recently there has been a lot of talk about doing offloading tasks for the GPU. Mozilla has implemented a new engine for your browser called Servo . In his heart he makes...
asked by 23.02.2017 / 20:57
1
answer

cin vs scanf, which one is faster?

In competitive programming, it is common for many programmers to use scanf() and printf() in C ++ code instead of using cin and cout . And I've even seen problems that result in a Time Limit Exceeded (TLE) when us...
asked by 01.05.2016 / 22:47
1
answer

What is the purpose of using inline functions in the C language? [duplicate]

I would like to know what is the purpose of inline functions in the C language? Is there any performance difference or other features that should be taken into consideration compared to common functions? Example of an inline function...
asked by 30.01.2016 / 23:10
2
answers

limit the for, php

Well, this is the following, I'm generating paging links to get more lightness in my system, the problem is I have many records in the database and this pagination generates many links, thus occupying a very large part of the page, I would like...
asked by 19.12.2014 / 14:38
1
answer

Is it worth using binary operators to gain performance?

I have the following situations: if (1 & 1){} and if (1 == 1){} According to what I've learned, working with bitwise operators causes a much better performance in the program, so I've had some doubts: Is performance in the f...
asked by 03.01.2018 / 22:04