performance

Telerik Extensions for ASP.NET MVC - Performance Implications

I've used quite a bit of the Telerik RadControls for AJAX, and though I've been pretty happy with the controls, I've found that the performance has been less than stellar over traditional controls. I'm wondering what the performance implications would be (that you might know of) with regards to the MVC Extensions over traditional jQuery...

C# Winforms: Efficiently Displaying Many Controls

I'm building a control that comprises 15x15 = 225 buttons, and needs to be resizable. Because it's a grid, anchoring and docking won't work. I've tried both TableLayoutPanel as well as handling the resize event to manually place and size controls. In both cases, resizing is unacceptably slow. Suspend/Resume Layout in the resize funct...

tracking metric over multiple time buckets - known algo?

A situation has come up a few times in the last few weeks when I'd like to measure some event which might happen regulary (like the time taken to redraw a frame in a 2D smooth-scrolling UI) or variable freqency (like a message arriving to a webservice endpoint). I've had and idea of measuring 1) 'normal' frequency, 2) current frequency,...

Performance tuning MYSQL Database

How can i log which all query is executed,how many secs a MYSQL query take to execute, to increase performance of database? I am using PHP ...

Show lot of Data in chart (Create Waveform)

hello i want to create a SoundEditro with a wave form. i want to show all samples in this wave form but samples count > 9000000 thus my program work very bad. please help me, for create a waveform that show all samples rapidly. i use from MSChart for Framework 3.5 sp1 ...

Transforming lots of XMLs (File objects) into a single String with all the files' contents

What is the most effective (performance-wise) and clean way to perform the transformation of taking up to 500 XML files, sized up to 50 Mb each and making a single String out of them. All files are XML and need to keep the formatting etc. I'm currently doing the reading using XMLEventReader , and then XMLEventWriter,reading one event at...

C++ & DirectX - geometry question

Hello! I am working on my own 3d engine and have the following question: I have an abstract object, that handles geometry (vertices and faces). It uses internal storage for this geometry, allows editing and my renderer object has a method RenderGeometry. With this design my rendering process includes a geometry caching step. So, rende...

Curious Performance difference between returning a value or returning through an Action<T> parameter

I was curious to see what the performance differences between returning a value from a method, or returning it through an Action parameter. There is a somewhat related question to this http://stackoverflow.com/questions/2082735/performance-of-calling-delegates-vs-methods But for the life of me I can't explain why returning a value w...

Varnish: cache only specific domain

Hello, I have been Googling aggressively, but without luck. I'm using Varnish with great results, but I would like to host multiple websites on a single server (Apache), without Varnish caching all of them. Can I specify what websites by URL to cache? Thanks ...

java statistics collection for performance evaluation

What is the most efficient way to collect and report performance statistic analysis from an application? If I have an application that uses a series of network apis, and I want to report statistics at runtime, e.g. Method doA() was called 3 times and consumed on avg 500ms Method doB() was called 5 times and consumed on avg 1200ms et...

Efficient HashMap retrieval with key composite key (build from 2 enums)

Hello, I have a 2 enum values representing a mapping to object which I'm (currently) modeling with a HashMap with the 2 enums values are used as key and the object is the value. This is inefficient because what I'm doing is creating a new CompositeKey(Enum1 enum1, Enum2 enum2) for each combination of the Enum1.values() x Enum2.values()...

What's better to use, a __try/__except block or a try / catch block?

Hi, I'm wondering which is the better way to catch exceptions that I throw: is it a __try / __except block or a try / catch block? I'm writing in C++ and the program will only be used on Windows, so portability is not an issue. Thanks! ...

DataGrid Excessive Databinding Property Get Calls

We have a data grid on a window that is bound to a collection of objects. We are having very bad performance on this window; it can take up to 20 seconds to load, and then 5-7 seconds each time you 'scroll' the data grid. This is with a total of 12 items so far. When we investigated, it seemed that the primary cause of the slowdown w...

Negating the truthiness of a boolean evaluation causing 5x slowdown?

I'm trying to implement an octree, and for that, I need a fast AABB-ray intersection algorithm. After some searching, I came across this paper that seemed to offer that. From the source code, available here, I translated the pluecker_cls_cff function to C# as this: public bool Intersect_2(ref RayPluecker r) { switch (r.Classification)...

Are there any performance penalties when using nested structures?

Are there any performance penalties when I use multiple nested structures/classes (kinda like using muti dimension heap arrays) or is it just an organizational feature of the language to make it easier to keep track of data and the compiler doesn't actually see any difference? Thanks ...

Is it true that writing the database name in every query is faster than calling mysql_select_db() on every page load?

Hi, I work at a fairly big website; we have ~400-500 million page views a month. We use PHP and MySQL. Currently our page flow works like this (semi pseudo code for clarity): mysql_connect(); mysql_select_db('red'); mysql_query('SELECT * FROM apples'); mysql_query('SELECT * FROM cakes'); One of my co-workers suggested that mysql_sele...

OnRender Performance issues

(I'm sorry for my poor English.) My work is - drawing lines in Panel. For this, I overrided the OnRender method of Panel, and put a below code. /// <summary> /// 라인의 두께 /// </summary> private const double LINE_THICKNESS = 0.5d; /// <summary> /// 가로줄의 간격 /// </summary> private const double GAP_PER_WIDTH...

In Excel VBA, the volatile Offset function is very slow. What is a alternative?

Hi, I'm having a performance issue in my Excel macro. One particular piece of code runs really slow. I think the reason is the Offset function. I've found online that it is a volatile function which recalculates a lot. The strange thing is that I use it as a VBA-function, so I can't figure out how it would affect performance as it never...

HTML5 localStorage vs sesionStorage vs another typeof data storage performance

I need to fetch some chunks of data in a Javascript loop. The pieces will probably be small between 2 and 20 Kb but being in a loop I need speed. I can get these pieces of code from local storage: var code = localStorage.getItem(myVar); or even from jQuery .data() var code = $('#myDiv').data(myVar); I was unable to find info on loc...

Which is better? An extra database call or a generated PHP file?

I want to add some static information associated with string keys to all of my pages. The individual PHP pages use some of that information filtered by a query string. Which is the better approach to add this information? Generate a 100K (or larger if more info is needed later) PHP file with an associated array or add an other DB table w...