performance

backend db setup for an app with geographically diverse users

The in-house developed software where I work connects directly to a mysql server here in our office via our devexpress orm (XPO). Performance is great. We're opening another office... cross country. Performance: not so great. The requirement is that the software be as responsive in both offices as it is in this office and that the data ...

Can a call to WaitHandle.SignalAndWait be ignored for performance profiling purposes?

I just downloaded the trial version of ANTS Performance Profiler from Red Gate and am investigating some of my team's code. Immediately I notice that there's a particular section of code that ANTS is reporting as eating up to 99% CPU time. I am completely unfamiliar with ANTS or performance profiling in general (that is, aside from self...

Performance Testing a Greenfield Database

Assuming that best practices have been followed when designing a new database, how does one go about testing the database in a way that can improve confidence in the database's ability to meet adequate performance standards, and that will suggest performance-enhancing tweaks to the database structure if they are needed? Do I need test d...

How to retrieve a list of directories QUICKLY in Java?

Suppose a very simple program that lists out all the subdirectories name of a given directory. Sound simple enough? Except the only way to list all subdirectories in Java is to use FileameFilter combined with File.list(). This works for the trivial case, but when the folder has say 150,000 files and 2 sub folders, it's silly waiting th...

.net How to measure time taken to download just the httpPost body excluding httpPost headers and upload data

One HTTP POST request/response transaction consists of Upload Request Ηeaders Upload Request Βody Download Response Headers Download Response Body I'm looking in .net to measure the time it takes for no 4 above (response body) alone. Is there an event sink or clever use of .net api (marking that the POST headers...

Will it ever be possible to run all web traffic via HTTPS?

I was considering what would it take (technologically) to move all the web traffic to HTTPS. I thought that computers are getting faster, and faster, so some time from now it will be possible to run all traffic via HTTPS without any noticeable cost. But then again, I thought, encryption strength will have to evolve to counter the loss o...

Method peaking my processor

Possible Duplicate: How do I start optimising my Java code? - CPU is at 100% I have a method isReset() that's executing like crazy i defined it as public boolean isReset() { return reset; } in another class. the class below is the only class that uses this code. import java.awt.BorderLayout; import java.awt.Dimension...

Setup expires headers PHP & Apache

How can I setup expires headers in PHP + Apache? I'm currently using an auto_prepend to serve resources gzipped but I'd also like to maximise the cache. How can I set these up? ...

High Disk Write on server

I have 2 identical servers and currently I am monitoring both of them by setting up performance counters. IIS 6 with .NET Framework 2 I am noticing that one server has high disk writes of ~3300 Writes/Sec and the other server has ~199 Writes/Sec Anyone encountered the same problem? What may cause high disk writes? These servers a...

How to make MSVC debug builds run faster

We have a large C++ application, which sometimes we need to run as a debug build in order to investigate bugs. The debug build is much much slower than the release build, to the point of being almost unusable. What tricks are available for making MSVC Debug builds execute faster without sacrificing too much on the debugability? ...

What response time overhead would you expect for a webservice request compared to a simple file request?

I'm developing an asp.net webservice application to provide json-formatted data to a widget that uses jQuery.ajax to make the request. I've been using the FireBug Net view to check how long the requests for data take. In my initial prototype I was simply requesting static json data files, which on my dev machine were obviously returned ...

Can I use SELECT statement inside INSERT values?

I tried this: INSERT INTO tbl_vaucher ( vaucher_name, created_date ) VALUES ( ( SELECT TOP 1 con_full_name FROM tbl_contact ), GETDATE() ) , getting: Subqueries are not allowed in this context. Only scalar expressions are all...

Core Data Migration really Slow, Why does it happen at all?

I'm developing a desktop Mac OS X App that saves its very simple data into SQLite with Core Data and a companion mobile App for iPhone that simply needs to read data from the desktop App. Although they share the same Managed Object Model when I load the SQLite database on the mobile app the data takes several seconds to migrate the data....

ModalPopupExtender Performance Issues

I have a weird performance issue with my ModalExtender using MS Ajax Toolkit, when I postback back to show the modal it takes near 10 seconds for it appear when my Gridview has about 1600 rows. If I page my Gridview to about 10 rows per page, the performance is acceptable, about a second to show.. Is this behavior normal? The speed is b...

yuicompressor error, not sure what is wrong?

Hi, Very confused here, trying out the yuicompressor on a simple javascript file. My js file looks like: function splitText(text) { return text.split('-')[1]; } The error is: [INFO] Using charset Cp1252 [Error] 1:20:illegal character [Error] 1:20:syntax error [Error] 1:40:illegal character [Error] 1:49:missing ; before stateme...

Using scanf() in C++ programs is faster than using cin ?

Hello, I don't know if this is true, but when I was reading FAQ on one of the problem providing sites, I found something, that poke my attention: Check your input/output methods. In C++, using cin and cout is too slow. Use these, and you will guarantee not being able to solve any problem with a decent amount of input or output. Use...

Ajax performance: ASP.Net MVC vs Webforms

I just switch my website over to MVC from Webforms and I am using ajax very heavily. MVC seems to be slower but I haven't set up anything to record benchmarks. Does anyone know which is faster for ajax handling and why it's faster? ...

C# Performance of nested yield in a tree

I've got a tree-like structure. Each element in this structure should be able to return a Enumerable of all elements it is root to. Let's call this method IEnumerable<Foo> GetAll(). So if we have A <-- topmost root / \ B C / \ / \ D E F G a call to GetAll on element C returns {C, F, G} (fixed order of eleme...

nhibernate starting performance

does nhibernate parse xml files everytime someone makes a request or just once when the application starts ? well here is what i m doing : public class SessionManager { private readonly ISessionFactory _sessionFactory; public SessionManager() { _sessionFactory = GetSessionFactory(); } public ISession GetS...

Speed tradeoff of Java's -Xms and -Xmx options

Given these two commands A: $ java -Xms10G -Xmx10G myjavacode input.txt B: $ java -Xms5G -Xmx5G myjavacode input.txt I have two questions: Since command A reserves more memory with its parameters, will A run faster than B? How do -Xmx and -Xms affect the running process and the output of my program? ...