Click here to Skip to main content
15,909,091 members
Everything / General Programming / Performance

Performance

performance

Great Reads

by Michael Sydney Balloni
Different languages and approaches are evaluated for a file and string processing benchmark
by Sergey Volk
Open source framework for monitoring Asp.Net Web Api 2 and MVC5 applications performance without using windows performance counters, automates performance counters data collection, store and visualization.
by Arthur V. Ratz
This article is a practical guide on using Intel® Threading Building Blocks (TBB) and OpenMP libraries for C++ based on the example of delivering parallel scalable code that implements Burrows-Wheeler Transformation (BWT) algorithm.

Latest Articles

by Tamar Christina
The article discusses various techniques for improving program performance by optimizing code for compilers, focusing on the ARM platform.
by Dev Leader
Learn how to use BenchmarkDotNet to effectively create and run benchmarks on your C# code. Dig into where you have opportunities to optimize your C# code!
by Higty
Fastest mapper in the world, easy to Use, ZERO configuration, FULL customization
by Gerardo Recinto
In-memory B-Tree sorted dictionary

All Articles

Sort by Title

Performance 

21 Jul 2018 by Ben Hall (failingfast.io)
Micro-Benchmarking Your C# - Pitfalls and A Tool To Help You Mitigate Them
24 Feb 2019 by MukeshKumarTech
In this post, we will learn a few points which can be implemented while developing the website in ASP.NET Core to improve performance.
7 Sep 2015 by Atul Kharecha
If you are using Lotus Notes as an email client and it is running very slowly, this tip will help you to overcome the performance issues.
22 Sep 2010 by jmix90
A fast and easy tip about shadows and performance
27 Mar 2013 by ahsan misbah
hii have a Performance point dashboard which have a bar chart and pie chart.i want to know is that possible if i hover over the cursor upon the chart (it shows the name or count of the incidents). Now i want i click on any colored bar chart and it takes me on to a new window and shows...
16 Mar 2012 by Sebastian Solnica
A managed ETW provider and the 15002 error
16 Jan 2016 by Mathew_wwx
This tip will introduce a library written in C++ that wraps up a 2d polygon triangulation algorithm with time complexity of O(N*logN), the algorithm works on both self-intersected and non self-intersected polygons.
28 Mar 2016 by Dmitriy Gakh
Intensive Big Data processing and Mobile Applications require fast calculations and compact data storage. Design of new quick and save .NET types with small overhead is not a simple task. This article describes creating of such type without overhead and with advantages only.
3 Aug 2015 by Sergey Alexandrovich Kryukov
This is how: http://bfy.tw/17yN[^].When you feel that you understand everything from this reading, install an SQL server. Your "don't have access" is not a fair excuse — some servers are free of charge.—SA
15 Aug 2011 by Areff
Hi every body.I have about 100,000,000 images (each one's size less than 10K , averagely 6K) means about 570GB and at the moment i had stored all of them in SQL Server 2008 R2 in one table.my question is that which way has better speed in accessing them ?1. Images stay in sql server...
16 Aug 2011 by Wendelius
I've done some comparison in binary data performance in Sql Server. Perhaps it would be of some use: How to store and fetch binary data into a file stream column[^]
23 Oct 2010 by TweakBird
Accessing Value from System.Data.DataTable
27 Oct 2010 by Andrew Rissing
Technically, the best approach here for speed and flexibility is to do the following:public class TestClass{ private const string EMP_ID = "EmpId"; public void MyTestMethod() { //GetData fetches data from the database using a SQL query DataTable dt =...
27 Oct 2010 by A.J.Wegierski
int empId = dt.Columns[EMP_ID].Ordinal;...int empId = Convert.ToInt32(dRow[empId]);
18 Oct 2017 by petter2012
Hi, Sort of a newbie question, but here goes... I am trying to use CompositionTarget.Rendering in my WPF 2D game to update the window. However I suck at event handlers etc so nothing happens when I try this and need some help. I have my MainWindow and a canvas in there where the action is. The...
19 Oct 2017 by petter2012
Actually, calling my gameloop from the CompositionTarget.Rendering event does the trick. I have now successfully tried with 30 dynamic objects as well as 300 dynamic objects. The objects are not moving smoothly if I have 300 moving objects, but the time is accurate: I have run the game for four...
16 May 2013 by chenduran10
How can I make the export more faster.this one is too slow..
14 May 2013 by CHill60
To improve performance you need to minimise the use of the Excel COM interface.I would suggest converting your list of objects to a datatable first and then exporting that to excel ...Here is a generic way to convert a list to a datatable Converting a List to Datatable[^]and here's how...
14 May 2013 by Maciej Los
If you fetching data from database, the fastest way to export data is to use CopyFromRange()[^] method for MS Excel range.More about: How to transfer data to an Excel workbook by using Visual C# 2005 or Visual C# .NET[^]
15 Sep 2016 by matt warren
Adventures in Benchmarking - Memory Allocations
15 Sep 2016 by matt warren
Adventures in Benchmarking - Method Inlining
15 Sep 2016 by matt warren
Adventures in benchmarking - performance golf
24 Jan 2017 by pycolle
Let's imagine I have a search page with a SEARCH button. When I click on it, the java program in the processRequest method execute a query on db, prepare the data and forward the result through the RequestDispatcher. In the java program I can write some instruction to write in a log file the...
18 Jan 2017 by eddieangel
You are going to have to stage an asynchronous call in the callback using either a jquery .ajax call or an XMLHTTPRequest object. Your function should look something like this:function someFunction(args, callback) {dosomething here;callback();}function callback()...
19 Jan 2017 by Neha Ambasta
You can use callback.What call does is,on complete of any function,it is called.You can also pass parameters in callback also. function getDBData(callback) { $.ajax({ type: "POST", url: "your url", contentType: "application/json;...
4 May 2020 by morzel
Cell renderers performance in ag-Grid
21 Jan 2013 by Amit Bezalel
Improving XmlSerialization performance.
15 Sep 2016 by matt warren
Using BenchmarkDotNet, this post will analyse the individual optimisations and show how much faster each change is.
11 Jul 2016 by Karthik Coder
How to replace the ng-repeat with Custom Directive
13 Aug 2014 by Liju Sankar
Hi,In the following query, Table 1 is used many times in order to get accurate Summary data. However when the total records in Table 1 increased to 400K, the query is taking more than 15 seconds to execute.Inviting your suggestion / view points to improve performance of this...
13 Aug 2014 by OriginalGriff
Never easy: it's going to take some work.This: http://www.anchor.com.au/hosting/dedicated/SQL_Query_Optimisation[^] provides good background, but it's not MsSql related (it's MySql/PostgreSQL) - the methods to do the analysis are different but the techniques are the same.Google will also...
14 Aug 2014 by Mangesh4
HiIf you are using same table then why should you used "from" clause every group.Use from clause only at once and apply multiple group function in single query.ThanksMangesh
14 Aug 2014 by Jörgen Andersson
The obvious solution would normally be the use of analytical functions to limit the number of table reads to just one.But SQLServer does not support Count(Distinct foo) over (Partition By Bar Order by Foobar)Luckily there's a workaround:SELECT DENSE_RANK() over (order by...
8 Jun 2014 by AbidHussain128
Hi,Can any one let me know the MongoDB data storage provider at cloud Front?I want my website Performance very good.I just require any online tool from Amazon.(I request 1000's of request in one second to give me 100's of records)Some details:-My Website hosted at Amazon EC2....
8 Jun 2014 by Prasad Khandekar
Hello Abid,MongoDB runs well on Amazon EC2. You can Manually Install[^] the MonGoDB or use a pre-configured AMI[^] from the AWS Marketplace.Regards,
9 Jun 2014 by Suvabrata Roy
Hi,How to install Mongo DB on Amazon EC2: https://mongodb-documentation.readthedocs.org/en/latest/ecosystem/tutorial/install-mongodb-on-amazon-ec2.html[^]Mongo DB drivers : http://docs.mongodb.org/ecosystem/drivers/[^]Mongo DB use case :...
6 Feb 2023 by Vadim Stadnik
Simple and useful alternative to traditional memory pool
11 Oct 2013 by ASP.NET Community
Here's even more performance tips for making ASP.NET fly.Checklist: ASP.NET Performance  The 2004 Patterns and Practices Book "Improving .NET
15 Feb 2017 by Sergey Volk
Open source framework for monitoring Asp.Net Web Api 2 and MVC5 applications performance without using windows performance counters, automates performance counters data collection, store and visualization.
29 Sep 2021 by tugrulGtx
CLOCK caching (LRU approximation) with O(1) cache hit, up to N asynchronous O(1) cache misses
11 Oct 2013 by ASP.NET Community
Response time is one of major factor in deciding the performance of web application. Many time we come across pages where content of page can be
12 Dec 2016 by Suresh Dasari's
Auto Generate Code (CRUD) for 3 Layered architecture (Entity, Data Access & Business Layer) with Stored Procedures based on table design.
5 Dec 2013 by Tharaka MTR
How to automate PNG and JPG image optimization
11 Jun 2011 by Omar Al Zabir
An HttpFilter that processes the output generated by dynamic pages and appends the last modified date of static files like js, css in order to make browsers download latest version as soon as files are changed
2 Nov 2014 by Ronnie Mukherjee
26 Jan 2024 by Gerardo Recinto
In-memory B-Tree sorted dictionary
27 Jan 2015 by Paul Schwartzberg
This tip shows two possible methods to find the balanced index of an array in C#.
2 Sep 2010 by dmihailescu
What is the start-up and system performance overhead for .Net, Mono, Java versus C++ and Forms, WPF, Swing versus MFC
27 Jan 2016 by agent_kruger
I know this might be very common question but i need to know the database that has:-1. The best performance (not talking about the application of the code but talking about when we simply retrieve data from database "Select A from Table1")2. Can handle large load of data (probably would...
27 Jan 2016 by RDBurmon
If you are looking for simplicity in retrieving the data then SQL SERVER is bestOffcourse, performance of query is purely depends on how you fine tune the database and how you write your queryFor example, below query will definitely be slow - select * from table1 t1 where t1.Id in...
20 Oct 2016 by sencsk
i've created the business application using c#.net with sql server. i need to do load and performance testing. please suggest me to find out best toolWhat I have tried:tried google so many tools available most of them for web or mobile.
20 Oct 2016 by Suvendu Shekhar Giri
First of all,What kind of performance test you are planning to do on your windows application?If I am not wrong a standalone application can be used by 1 user at a time if you have a single keyboard and mouse attached to it. So, it should not take much time for each of your requests to...
4 Dec 2013 by Imran Khan Pathan
Hi all,I want to discuss with you my one of scenario and want to know the best practice to make it faster and easy.Suppose, I have one Users table and I have 15,000 Users available in this table, I have one page in which, I can upload only existing users to assign them something, Now...
24 Mar 2014 by Vahid Yousefzadeh
- Building a CAD program in WPF:I want to build a CAD program that will have 10000 LINE objects at a time. I'm using LineGeomery class for drawing lines that are added to a Canvas. I have implemented Zoom and Pan and the performance is great so far.Only one major disappointment:The...
27 Nov 2012 by Srinivasu Pemma
This is the best way to handle or manage bulk data insert to sql server taken from my technical blog http://www.srinetinfo.com/2012/11/bulk-data-management.html
14 Apr 2013 by Nestor Marsollier
A point of view about business validations on enterprise applications
22 Aug 2012 by Captain Price
I searched "C vs C++" on Google. As it seems there is no identical performance difference among C and C++. But I think that is completely wrong, Because most of the system software are written using either C programming language or Assembly Language, not C++ or any other. So is C Faster than C++ ?
22 Aug 2012 by JackDingler
C is a subset of C++. That's why C++ has an increment operator built into the name. It's C with stuff added.Are you trying to say that system software is never written in C++?The current versions of the Windows OS's are largely written in C++.Straight C is used for system software for...
22 Aug 2012 by Sergey Alexandrovich Kryukov
The question is totally incorrect due to the approach: there is no "performance" in general. The performance can be considered only in regard to some particular code. And particular implementation of a compiler. And platform.Then, the comparison itself can only be done for some code which is...
22 Aug 2012 by ridoy
I think C++ is faster than C...may be i am wrong but it seems to me that.You can read a link here over this topic..http://unthought.net/c++/c_vs_c++.html[^]
22 Aug 2012 by Debdatta Basu
C++ takes a hit on virtual functions. But it is not a disadvantage of the language, as you will get similar performance hits if you emulate virtual functions using function pointers in C. C++ has a lot of features that can make very complex code very fast. For example, templates. C++ could...
22 Aug 2012 by JackDingler
One aspect not addressed so far, is whether it matters or not.In modern systems, it's rare that the language is a serious factor in determining performance.The way you structure your code, makes a bigger impact than the compiler.Simply avoiding inefficient programming practices, can...
8 Nov 2017 by dinesh_redhawk
Hello friends,I have written the folowing code to populate the data from a object in a tablelayoutpanel control. It works :), but when its loading the data onto the table, it flickers/jumps for few seconds and then after 2-3 seconds when its done processing the data it populates the data :(...
8 Jun 2015 by Staffan Bruun
Try putting the code that generates the new controls between a SuspendLayout/ResumeLayout pair:private void button1_Click(object sender, EventArgs e){ SuspendLayout(); // code that recreates controls on the form ResumeLayout();}This will keep the window from...
21 Sep 2015 by Ben Denger
Hello, im able to Convert a Doc file to PDF. But the Way i am doing it is very slow, which makes it nearly unusable.Im doing it the following way: wordDocument = appWord.Documents.Open(path, ReadOnly: false, Visible: false); ...
21 Sep 2015 by Dave Kreskowiak
There is no way to speed that up. The operation is completely out of your control.You can TRY other PDF libraries, such as CutePDF and "printing" the word document to a PDF file, but you'll likely end up with the same problem.
5 Sep 2012 by krunal25
Hello everyone,I need some kind of caching mechanism in sql or in asp.net for storing data (records) retrieved from sql stored procedure..Actual scenario :I have one stored procedure in sql which fetches 7 tables and gives the result , the result obtained is too huge i.e. around 5000...
5 Sep 2012 by Christian Amado
You will love this feature: SqlCacheDependency.http://msdn.microsoft.com/en-us/library/9dz445ks.aspx[^]Using SqlDependency for data change events[^]Hope it helps
5 Sep 2012 by Dylan Morley
What you really want to do is implement a decent paging solution. This will solve both your problems, you won't have slow binding times and you won't use lots of server memory by caching larges amounts of data.Humans can't handle 5000 records at once, it's too much information. Opinions...
5 Sep 2012 by Shriantlandge
You can use SQL paginiation techniq. PLease check below URL :http://shrikantlandge.blogspot.com/2009/05/pagination-with-mssql-server-2005.html[^]
29 Jul 2015 by SuperSlavik
Good day,Please, indicate: can local reference variables increase performance of .NET applications? In particular, is Method2, indicated below, faster than Method1? What are drawbacks of Method2 regarding memory usage and the GarbageCollector?public void Method1(){ for (int i =...
29 Jul 2015 by Fellow Mtshalie
Yes because your methods are non-static
29 Jul 2015 by E.F. Nijboer
Indeed you should check the IL to see if there are any differences. My guess would be there aren't because the temp variable item would in compiled code be a processor register. If the compiler is any good it will recognize the OuterObject.InnerList[i] repetition and won't reload it all starting...
29 Jul 2015 by OriginalGriff
That's actually a difficult question to answer, because it's not as simple as "do this, it'll be quicker". And the reason why is called "optimization". Just as you "optimize out" the dereference and array index access into a local variable in creating the second version, so can the compiler....
8 Oct 2015 by Jesús Álvarez
I plot several point in my chart ( 4 series x 1200points per serie), when i do that for 10 times (loop) my win form stop responding, only work the chart, progressbar stoip, timer elapsed time stop, buttons and panels stop, all GUI stop running.When a resize de form to smallest dimension, all...
26 Apr 2016 by Arthur Minduca
How to choose the right data structure for a collection of elements
21 Dec 2023 by Fercap89
I need to make a clean copy of a very large object list, about 400,000 records, for this I am doing the following: public static T DeepClone(this T a) { if (ReferenceEquals(a, null)) return default; return...
23 Dec 2023 by OriginalGriff
Stop and think about what you are doing: JSON is a human readable text based transfer format, not an efficient storage format. Suppose your object to deep close was an array of integers, containing five values: int[] data =...
17 May 2011 by Omar Al Zabir
Caching frequently used objects, that are expensive to fetch from the source, makes application perform faster under high load. It helps scale an application under concurrent requests. But some hard to notice mistakes can lead the application to suffer under high load, let alone making it perform be
26 Aug 2013 by Buddhi Chaturanga
Please I need brief comparison of above mentioned 3D teachnologies.What is the most suitable technology for general 3D applications?Concerning O/S:Windows dependent 3D applications developed using DirectX.Linux dependent 3D applications developed using OpenGL.Some 3D applications...
26 Aug 2013 by Sergey Alexandrovich Kryukov
You cannot really "compare" things like that. The reason is simple: there is no such thing as "general 3D application". The fact that this is a game adds some certainty, but not enough. Moreover, you mention different platforms. How you can compare something, if a technology exist on one...
19 Jul 2021 by The Sun God
Comparison of the various sorting algorithms on the basis of several factors
12 Mar 2013 by DeepsMann
Hello,I have a WCF service hosted on IIS 7.5 on my server. I have used Entity framework 5.0 in my service.When I call that service from my local system by adding service reference and creating client in a site, it takes approx 40 seconds to get the response. I tried calling the same...
12 Mar 2013 by Andy411
Some steps you can go to analyse your problem:1) Implement a simple test method in your WCF service, e.g.public in TestMethod(int data){ return (data + 1);}and look how long it takes to call it from your client.If it is fast enough, your next steps would be to see...
15 Sep 2016 by matt warren
Coz: Finding Code that Counts with Causal Profiling - An Introduction
20 Aug 2011 by Kanasz Robert
In this first part of series of articles about database performance optimization I will discuss about indexing strategies and index maintenance.
23 Aug 2011 by Kanasz Robert
In this second part of series of articles about database performance optimization I will discuss about index maintenance.
27 Oct 2014 by chandra sekhar
My source code is of size 8Gb in that lots of commented code is there.The application is also slow so if i delete the commented code can i increase the performance??Where can i check for the performance road blocks??
27 Oct 2014 by Praneet Nadkar
Hi,Please have a look at the following links:http://www.red-gate.com/products/dotnet-development/ants-performance-profiler/[^]http://msdn.microsoft.com/en-us/library/3xxk09t8%28v=vs.100%29.aspx[^]10 ASP.NET Performance and Scalability Secrets[^]Regards,Praneet
27 Oct 2014 by Mehdi Gholam
Comments have no effect on runtime performance since the compiler ignores them.If you have 8gb of .net source code then your problems are far greater than performance.Start by zooming in where your users say the system is slow with the use of a profiler and work on the bits that take...