If I embed a video demonstrating my application in my home page, will it slow down the page to a considerable amount?
I tried, and checked that it takes almost 1 sec, to load the preview of the video.
And as the video stream will not be downloaded until, the video is clicked, the total video do not have to get downloaded.
Is it recomme...
I am mostly curious and this isnt a problem. Typically my (C++) apps use very little memory. I thought my current app would take little memory but it uses 3.7mb and VM size of 17.3mb. The app has 4 icons in its resource file, 4 ints in the local(user)settings and is the app LoC is <1k. It detects keyinput and writes a line in a listbox ...
Possible Duplicates:
Is String.Format as efficient as StringBuilder
C# String output: format or concat?
What is the performance priority and what should be the conditions to prefer each of the following:
String.Format("{0}, {1}", city, state);
or
city + ", " + state;
or
StringBuilder sb = new StringBuilder();
sb.Append(...
Are there any open source projects that use NHibernate and which serve as a proof of concept for NHibernate. I'm looking for concrete proof of NHibernate's ability to meet enterprise standards in terms of performance and scalability mainly. Especially interesting would be use of batching.
I'm not sure how synched NHibernate and Hibernat...
I'm having approx. 200K rows in a table tb_post, and every 5 minutes it has approx. 10 new inserts.
I'm using following query to fetch the rows -
SELECT tb_post.ID, tb_post.USER_ID, tb_post.TEXT, tb_post.RATING, tb_post.CREATED_AT,
tb_user.ID, tb_user.NAME
FROM tb_post, tb_user
WHERE tb_post.USER_ID=tb_user.ID
ORDER BY tb_po...
I've tried searching through search engines,MSDN,etc. but can't anything. Sorry if this has been asked before. Is there any performance difference between using the T-SQL "Between" keyword or using comparison operators?
...
Does nHibernate create code that has all the details of the column?
I know with regular ado.net it increases performance if you have your sql paramters with the column details like: column name, size, sqltype.
...
Hello,
When I check with Privoxy what my browser downloads from one site, it seems like all the elements that make up the page (CSS, JS, icons, etc.) are redownloaded every time, ie. the browser doesn't cache them (Sorry, new uses aren't allowed to include URLs):
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<TITLE>My S...
I'm dealing with financial data, so there's a lot of it and it needs to be relatively high-precision (64bit floating point or wider).
The standard practice around my workplace seems to be to represent all of it as the c# decimal type which is a 128bit wide floating point specifically created to support round-off free base10 operations.
...
The thing I have a web app (asp.net) which needs to have a feed. So I used the System.ServiceModel.Syndication namespace to create the function that creates the 'news'. The thing is it executes everytime somebody calls it, should I use it just to create an xml file and make my rss url point to the file?
What's the best approach?
Edit...
I am crunching through many gigabytes of text data and I was wondering if there is a way to improve performance. For example when going through 10 gigabytes of data and not processing it at all, just iterating line by line, it takes about 3 minutes.
Basically I have a dataIterator wrapper that contains a BufferedReader. I continuously...
Are the old tricks (lookup table, approx functions) for creating faster implementations of sqrt() still useful, or is the default implementation as fast as it is going to get with modern compilers and hardware?
...
I have a 5yr old G4 PowerBook that I use while travelling, and I had intended to get some work done whilst I am away for the next few weeks.
Eclipse just seems to be horrendously slow on it. I've tried tweaking the memory allocated to the VM, but it doesn't seem to do very much :)
Any thoughts as to why it's so slow? I don't get this p...
What are your opinions about what techniques should I use in the performance analysis and optimization of every application done in .NET technologies?
Also what kind of debugging/tracing techniques do you know that can be powerful?
Do you think that at large scale projects is necessary to have custom debugging/diagnostic classes?
Do you...
I have a very simple server php code like this
function listenForClients()
{
$this->serviceConnection = socket_create(AF_UNIX, SOCK_STREAM, 0);
socket_bind($this->serviceConnection, "\tmp\mysock", 0);
socket_listen($this->serviceConnection, 10000000);
while($clientSocket = socket_accept($this->serviceConnection...
In Hidden Features of Java the top answer mentions Double Brace Initialization, with a very enticing syntax:
Set<String> flavors = new HashSet<String>() {{
add("vanilla");
add("strawberry");
add("chocolate");
add("butter pecan");
}};
This idiom creates an anonymous inner class with just an instance initializer in it, w...
There are plenty of performance questions on this site already, but it occurs to me that almost all are very problem-specific and fairly narrow. And almost all repeat the advice to avoid premature optimization.
Let's assume:
the code already is working correctly
the algorithms chosen are already optimal for the circumstances of the pr...
How do I reversably slow a PC with XP?
I want to achieve this without using visible CPU-cycles, so I'm guessing some hardware settings might do.
I don't want my app to run slow, I want the whole OS to be slow. I know some network lookups especially out of a trusted environment (think Active Directory) slow a PC way down. This is the ef...
Trying to separate out my LAMP application into two servers, one for php and one for mysql. So far the application connects locally through a file socket and works fine.
I'm worried about the number connections I can establish if it is over the network. I have been testing tcp connections on unix for benchmark purposes and I know that ...
Background: I'm writing a 'standard' (nothing special) web application in Ruby (not Rails) and I need to start thinking about deployment.
So I've been hearing a lot of recommendations to use JRuby to deploy Ruby web applications, regardless of whether you actually need Java libraries or not. How true is this? Is it worth using the Java ...