Top "Performance" questions

For questions pertaining to the measurement or improvement of code and application efficiency.

How can you speed up Eclipse?

How can you make the experience with Eclipse faster? For instance: I disable all the plugins I don't need (Mylyn, …

eclipse performance
Command-line Tool to find Java Heap Size and Memory Used (Linux)?

Is there a Command-line Tool (Linux) to check Heap Size (and Used Memory) of a Java Application? I have tried …

java linux performance memory heap
How can you profile a Python script?

Project Euler and other coding contests often have a maximum time to run or people boast of how fast their …

python performance profiling time-complexity
How to create a new object instance from a Type

One may not always know the Type of an object at compile-time, but may need to create an instance of …

c# .net performance reflection types
Make first letter of a string upper case (with maximum performance)

I have a DetailsView with a TextBox and I want the input data be saved always with the FIRST LETTER …

c# performance
Most efficient way to map function over numpy array

What is the most efficient way to map a function over a numpy array? The way I've been doing it …

python performance numpy
What is the most efficient way to loop through dataframes with pandas?

I want to perform my own complex operations on financial data in dataframes in a sequential manner. For example I …

python pandas performance dataframe for-loop
Counting DISTINCT over multiple columns

Is there a better way of doing a query like this: SELECT COUNT(*) FROM (SELECT DISTINCT DocumentId, DocumentSessionId FROM DocumentOutputItems) …

sql sql-server performance tsql query-optimization
What's the fastest way to read a text file line-by-line?

I want to read a text file line by line. I wanted to know if I'm doing it as efficiently …

c# .net performance file-io text-files
What is the best way to paginate results in SQL Server

What is the best way (performance wise) to paginate results in SQL Server 2000, 2005, 2008, 2012 if you also want to get the …

sql sql-server performance pagination