winforms profiling - dotTrace 3.1 or Ants 4.3
are there any particular features in one versus another that would help me decide which to purchase for a winforms app. I am looking for both memory, cpu, performance bottlenecks. ...
are there any particular features in one versus another that would help me decide which to purchase for a winforms app. I am looking for both memory, cpu, performance bottlenecks. ...
I am using the following piece of C code to change file extension. { #define EVAL_MAX_LEN (300) int nLen; char szOut [EVAL_MAX_LEN] = {0}; char szPath [EVAL_MAX_LEN] = "/db/file/face.bmp"; // Get string length !!! nLen = strlen (szPath); if ((nLen > 0) && (nLen < EVAL_MAX_LEN)) { while (nLen) { // Check for...
Given are two sets of three-dimensional points, a source and a destination set. The number of points on each set is arbitrary (may be zero). The task is to assign one or no source point to every destination point, so that the sum of all distances is minimal. If there are more source than destination points, the additional points are to b...
I have a DataTable/collection that is cached in memory, I want to use this as a source to generate results for an auto complete textbox (using AJAX of course). I am evaluating various options to fetch the data quickly. The number of items in the collection/rows in the datatable could vary from 10000 to 2,000,000. (So that we dont get di...
Hi, I am developing a solution which will include data transfer between mobile phone and server. However, I would like to minimize the quantity of the transferred data. I was planning to try several types of encoding with TCP/UDP connection and measure the traffic and data loss. Otherwise I believe there already exist some kind of reco...
Overview: I have three tables 1) subscribers, bios, and shirtsizes and i need to find the subscribers without a bio or shirtsizes the tables are laid out such as subscribers | season_id | user_id | bio | bio_id | user_id | shirt sizes | bio_id | shirtsize | And I need to find all users who do not have a bio or shirtsize, ...
I've got a very simple stored procedure : create procedure spFoo(v varchar(50)) as insert into tbFoo select v I've got 50 values to insert into tbFoo, which means in my c# code I call spFoo 50 times. This is a pretty inefficient way of doing this, especially if there's some lag between my program and the database. What do you usuall...
What is there to gain from the use of this switch in a large VS solution (200 VC projects)? From what I understand this mainly effects the size of the resulting binaries; but aside from smaller binaries, could FLL also help in reducing dependencies between projects? How does FLL usually effect build times? I'd also appreciate an educa...
I've looked in the usual places (apache commons, google) and not been able to find one ... It should be opensource. Pretty much looking for one based on a linked list. The use case is 10'000's of maps, with not necessarily many values in. It does not need to scale up, as i can convert it when it gets too big. Some numbers, sizes usin...
Hello world application that uses Flex, compiled with optimize=true has size 178K. How to reduce application size? We do not like to use RSL, we don't like to avoid Flex. Largest part of resulting SWF is unused bytecode. Are there any tools to optimize bytecode — drop unused methods, classes, give methods shorter names and so on? I kn...
Say, we have a program that gets user input or any other unpredictable events at arbitrary moments of time. For each kind of event the program should perform some computation or access a resource, which is reasonably time-consuming to be considered. The program should output a result as fast as possible. If next events arrive, it might ...
Which of the following code is fastest/best practice for converting some object x? int myInt = (int)x; or int myInt = Convert.ToInt32(x); or int myInt = Int32.Parse(x); or in the case of a string 's' int myInt; Int32.TryParse(s, out myInt); I'm curious on which performs the fastest for datatypes which have a method in Convert...
I am looking to optimize reading/writing huge data for a C++ simulation application. The data termed as a "map" essentially consists of integers, doubles, floats and a single enum. A majority of this map data is fixed in size but a small part of it can vary (from a few to several KB) in size. Several such maps (typically millions) are c...
Hi all, When a PNG is added to an XCode iPhone project, the compiler optimizes it using pngcrush. Once on the device, the image's rendering performance is very fast. My problem is that my application downloads its PNGs from an external source at runtime (from Picasa Web albums, using the Google Data APIs). Unfortunately, these images...
I just finished writing a small script to combine a lot of png pictures into a bigger one for CSS Sprite. So basically, I have a list of dimensions [(w1,h2), ..., (wn,hn)] and I need to put them into a frame with dimension (W,H) with WH as small as possible. (Of course they cannot overlap) The heuristic I used is obviously not optima...
At Disney World, they use a system called Fastpass to create a second, shorter line for popular rides. The idea is that you can wait in the standard line, often with a wait longer than an hour, or you can get a FastPass which allows you to come back during a specified time block (usually a couple hours later) and only wait for 10 minute...
It's currently not so slow as to make the site unusable, but in mobile safari on the iphone there is a noticeable lag. Is there a simpler way to do this? "Find div.items that have an empty div.video_guid" ...
I have three javascript files that I want to merge into a single file. Is it possible to just copy paste all of the code into one file or will there be namespace conflicts and other problems? EDIT: I'm worried that each file acts like a namespace encapsulating each file's code, and that this encapsulating will cease to existing if I mer...
Does C# inline access to properties? I'm aware of the 32 byte(instruction?) limit on the JIT for inlining, but will it inline properties or just pure method calls? ...
I found the CompilationRelaxations attribute on an assembly when looking at it in Reflector. This link says that the attribute specifies whether: Optimizers are granted additional latitude for relaxed exceptions. What are relaxed exceptions and what does the compiler do given its "additional latitude" with them. ...