After copious recommendations i've just started using Pingdom, does anyone have any tips?
ie. i recall someone mentioning something about tweaking to response-time to look for a specific node so that it gives the actual page load time? is this even possible?
...
Which one of these 2 examples would perform better:
Example 1:
if($condition_1)
{
if($condition_2)
{
// do something
}
}
Example 2:
if($condition_1 and $condition_2)
{
// do something
}
...
Hi!
Which pattern is better for SqlConnection object? Which is better in performance?
Do you offer any other pattern?
class DataAccess1 : IDisposable
{
private SqlConnection connection;
public DataAccess1(string connectionString)
{
connection = new SqlConnection(connectionString);
}
public void Execute(stri...
Hello,
I was intending to create a Splash screen like the one sported by Visual Studio 2010 for my desktop application (feel free to use any version of C#/VB/CLR).
As per the Visual Studio blogs, the splash screen was not developed using WPF since it would involve the CLR and WPF libraries to load causing a substantial delay in app l...
I'm pretty new to web programming and I'm currently developing a web back end for a mobile application. Currently I have the users log in using servlet interactions and once they have full access to the application I need to open a Socket Connection so that I can provide server pushes. Now the problem I'm running into is how people handl...
Hi everyone.
I'm struggling with this simple idea.
Look at reddit, when you sign up for a new account.. you automatically subscribe to some default channels.
I want to do the same with my website.
I know I could do the simple and stupid user_chan with id, user_id, chan_id
if chan is like this :
ID | NAME
1 | videos
2 | pictures
u...
I use around 1000 properties associated with a specific java.util.Properties which is backed by a file. The main reason for the file is to change them without recompiling the program and to allow users to adjust their according to their taste.
Some of the properties are used only in one place in the code, but there are some properties th...
I'm trying to determine whether Object1 will collide with Object2 given the following information:
1) Objects' bounding boxes (uses bounded-box collision detection)
2) Objects' speeds
3) Object's current locations (x, y coordinate)
4) Objects' directions (Up, Down, Left, or Right)
For a bit of imagery, imagine the objects traveling ...
I have some regexes in a Perl script that are correct but slow. I am considering trying to improve performance by adding extra + operators (ie *+ instead of * and ++ instead of +) to disable backtracking. I tried replacing all of them and the regexes stopped working... so much for the simple solution. How do I know where I can add the...
Hi all,
I am using Boost.Python to extend python program functionality. Python scripts do a lot of calls to native modules so I am really concerned about the performance of python-to-cpp type conversion and data marshaling.
I decided to try exposing methods natively through Python C API. May be somebody already tried that before ? Any ...
Hi,
Is it possible to do GPU programming in Java ?
I mean without using native libraries.
And how much of a performance improvement can one expect when we switch over to gpu's ?
Edit:
I am not looking at game programming, I want to do hard core number crunching.
...
I have a highly threaded program but I believe it is not able to scale well across multiple cores because it is already saturating all the memory bandwidth.
Is there any tool out there which allows to measure how much of the memory bandwidth is being used?
Edit: Please note that typical profilers show things like memory leaks and memor...
I am writing an algorithm for finding longs path over several turnpoints given a list of coordinates (that describe a path). The dynamic programming algorithm works nicely in O(kn^2), where k is the number of turnpoints and n number of points. To cut the story short: the slowest part is distance computation between 2 coordinates; the alg...
Okay so my situation at work is that I've written about 200 or so lines of additional functionality into an aspx page's code-behind that is currently not to be implemented. It is in a subroutine that handles an event that currently has zero chance of occurring.
Because this code is not being used, I've gotten curious. Should I comment o...
One of the portion of my site requires bulk insert, it takes around 40 mins for innodb to load that file into database. I have been digging around the web and found few things.
innodb_autoinc_lock_mode=2 (It wont generate consecutive keys)
UNIQUE_CHECKS=0; (disable unique key checks)
FOREIGN_KEY_CHECKS=0 (disable foreign key checks)
--...
I'm getting some intermittent bottlenecks on my 2D OpenGL ES iPhone game. When I profiled it in Shark, nothing remarkable came up. In the game, the background takes up the whole screen and I have about 7-8 smaller sprites continuously moving across the screen. For the most part it runs smoothly, but every now and then I'll get a small f...
This question is a followup to This Question
The solution, clearing the execution plan cache seemed to work at the time, but i've been running into the same problem over and over again, and clearing the cache no longer seems to help. There must be a deeper problem here.
I've discovered that if I remove the .Distinct() from the query, ...
My program uses around 20 jars (for a total size of about 30mb). For now, they are all added to the classpath for the released version, and all jars are deployed with the rest.
Would there be a performance impact if I was unpacking them and repacking them into one jar?
...
Possible Duplicate:
What is the cost of reflection?
Does anyone have a good explanation of the generally accepted mantra that reflection == bad performance?
For example, how expensive is it to iterate over a type's properties collection and extract all property values from an instance of this type compared to just accessing ...
I have a web app using thin clients (bosanova terminals) as the front end for users. I've noticed some performance differences in JavaScript between the thin client and a PC. The terminals are running windows XP embedded with IE6, and the pages I'm referring to are utilizing prototype JS framework to do some rather simple validation on...