performance

Performance of querrying across two mysql databases on the same server?

Is there any performance hit from querying over two (or more) databases on the same MySQL server, compared to if those databases had been merged into one? Background, I have inherited maintenance over a web application that splits its data into three different databases that runs on the same server, one for content, one for users and gr...

Charting Software for Performance Stats

I'm looking for a charting library similar to amCharts that allows you to create graphs with a timeline, e.g: http://www.amcharts.com/stock/ It should also allow to you to select a range within the chart and zoom in to see further specifics. The purpose of this is for visualizing performance related information such as i/o stats etc.....

Regex to match "{number}"

I need to replace "{Z}" with "test(Z)" where Z is always an unsigned integer using PHP and regular expressions (unless there's a faster way?). $code='{45} == {2}->val() - {5}->val()'; // apply regex to $code echo $code; // writes: test(45) == test(2)->val() - test(5)->val() The tricky part is that it needs to be done in the best manne...

Performance in Java through code?

Hi! First of all I should mention that I'm aware of the fact that performance optimizations can be very project specific. I'm mostly not facing these special issues right now. I'm facing a bunch of performance issues with the JVM itself. I wonder now: which code-optimization make sense from a compiler perspective: for example to sup...

Python Language Nuances

Possible Duplicate: Common Pitfalls in Python I'm learning Python and I come from a diverse background of programming languages. In the last five years, I've written quite a bit of Java, C++, VB.Net, and PHP. As many of you might agree, once you learn one programming language, learning another is just a mater of learning the d...

VS2010 WPF debugging: TextBox typing is very slow, just me?

I am creating a new application in .NET 4 and the TextBoxes are way too slow, I haven't applied any Styles, Bindings etc. just plain TextBox. I tried to create a new project with a TextBox in Visual Studio 2008 and the TextBox works good. Note: The problem only occurs in debug, when I run without debugging (^F5) it works good in VS2010...

What tools can I use to determine the hardware requirements of my application?

For regular readers: The saga™ continues... My app runs fine on my development machine - which was purchased (5 years ago) as a fairly good gaming rig. As such, it's 64bit, has a 2.2GHz clock-speed and has 2GB of memory. The machines at work however, are standard Dell issue office computers and really struggle to even start my app, let...

When create new Database

I have a general Database Design question: When is it better to create a new Database instead of adding new Tables to an existing? The question is related to design/maintainability andalso performance issues. Background: we are mirroring the main tables of our customer by importing the data every night into our DB called RM2. Some new (...

Database normalization design - single or multiple tables

Should this be represented in the database as 1 table or 3 tables? I and my friend have different opinions about this so I'd like to see the general views on this. (Maybe it should be a vote for either solution?) Create Table Order // Basic fields of the table - ID (Primary key) - CustomerID (integer, with a FK) - Quantity - Prod...

Why is matrix multiplication in .NET so slow?

I don't quite understand what makes matrix multiplication in C#/.NET (and even Java) so slow. Take a look at this benchmark (source): Trying to find an updated benchmark. C#'s integer and double performance is damn close to C++ compiled with MSVC++. 87% as fast for double and 99% as fast for 32-bit integer. Pretty damn good, I'd say....

Caching to CGLayer slower than redrawing on iPhone

I'm in the process of making a simple drawing program for the iPhone. At the moment, touch events add their location to a list which is connected with a bunch of CGContextAddLineToPoint calls which are redrawn in every call to drawRect. I'm running into performance issues at fairly low numbers of lines (they are transparent, though), s...

Delphi: Why Doesn't Binary String Comparison Operator (=) use SameStr?

It is common knowledge that SameStr(S1, S2) is faster than S1 = S2, where var S1, S2: string in Delphi. (And, of course, SameText(S1, S2) is much faster than AnsiLowerCase(S1) = AnsiLowerCase(S2).) But, as far as I understand it, SameStr(S1, S2) does exactly the same thing as S1 = S2, so I cannot help but wonder why in the world the De...

Efficient Independent Synchronized Blocks?

I have a scenario where, at certain points in my program, a thread needs to update several shared data structures. Each data structure can be safely updated in parallel with any other data structure, but each data structure can only be updated by one thread at a time. The simple, naive way I've expressed this in my code is: synchroniz...

Mid Range Website Performance Metrics

I've been doing a good bit of research into website performance lately and I'd say I've gained a fair amount of knowledge about best practises to improve website performance as well as reduce bandwidth requirements by making such tweaks as GZipping, content caching, and image and script optimization. My problem is I've found plenty of c...

In C is it faster to use the standard library or write your own function?

For example, in <ctype.h> there are functions like isalpha(). I want to know if writing an isalpha function on my own is faster than calling isalpha? Thanks for all your instant replies! just want to make clearer to my question: so even for the isalpha function? because you can simply pass a character and check if the character is b...

Suggetions for overcoming a flash waveform performance problem

Hi, My question is sort of a follow on from this question below but I thought it'd be best to start a new question. http://stackoverflow.com/questions/3211755/help-converting-this-as3-code-to-pixel-bender-code So I have a waveform drawing implementation in flash that extracts pcm data from an mp3 and draws a waveform at multiple zoom ...

Open-source OpenGL profiler for Linux

The title sums my question up pretty well: are there any open source OpenGL profilers for Linux? The only thing I could find was gDEBugger, but it only comes with a 7 day trial and is very much closed source. I would use this for free (as in freedom) software development so paying is not an option, though I might consider accept answers...

Tuning OpenGL performance for geometry throughput

This has probably been asked over and over but I couldn't find anything useful so here it goes again... In my application I need to render a fairly large mesh (a couple of million triangles or more) and I'm having some problems getting decent frame rates out of it. The CPU is pretty much idling so I'm definitely GPU-bound. Changing the ...

Iteration of a randomized algorithm in fixed space and linear time

I used to ask a similar question once. Now I'll be more specific. The purpose is to learn a Haskell idiom to write iterative algorithms with monadic results. In particular, this might be useful for implementing all kinds of randomized algorithms, such as genetic algorithms and a like. I wrote an example program that manifests my problem...

Inline expansion in C#

I am working on a math library for my DirectX 3D engine in C#. I am using SlimDX, which is a wonderfuly put together and powerful library. SlimDX provides quite a few math classes, but they are actually wrappers around native D3DX objects, so while the objects themselves are very, very fast, the interop is not I presume, because my manag...