We're designing an Android app that has a lot of data ("customers", "products", "orders"...), and we don't want to query sqlite every time we need some record. We wanna avoid to query database as most as we can, so we decided to keep certain data allways in memory.
Our initial idea is to create 2 simple classes:
"MemoryRecord": a clas...
Now that LINQ is such an integral part of .NET, are their optimizations at the compiler level that would use the optimal path to get results?
For example, imagine you had an array of integers and wanted to get the lowest value. You could do this without LINQ using a foreach, but it's certainly easier to use the Min function in LINQ. O...
Hi everybody, we are struggling to find out what could be the asp.net application performance decrease when we pass from our staging server to our production server and we would like to hear from you to help us find the bottleneck.
Our staging server is a Intel Core 2 Quad CPU Q8200 (2.33 GHz) with 4GB of RAM, Windows Server 2003 R2 SP2...
Hi fellows,
Could anyone tell why is gunzip -c so much slower than gzcat ?
I though they were essentially the same..
cheers,
f.
...
In AS3 I believe you should initialise all variables outside loops for increased performance. Is this the case with JavaScript as well? Which is better / faster / best-practice?
var value = 0;
for (var i; i < 100; i++)
{
value = somearray[i];
}
or
for (var i; i < 100; i++)
{
var value = somearray[i];
}
...
Using Sybase ASE 15 for this - I have about a large amount of rows (up to 10 mil) to delete from a table on a regular basis, but I want to keep a selection of the latest added data to the table, so that rules out using truncate directly on the table.
delete from master_table where...
Using the above delete is very slow, so my strategy...
Hi folks.
When programming there are decisions to make all the time, like:
Should I generate my Menu/Buttons/Navigation dynamically from a db entry or static via code
Should I count entries of a list by Java or firing a DB query
..or maybe you find more of those DB vs Javacode questions.
(I hope that question is not too common:)
Wha...
I have a simulation that has a huge aggregate and combine step right in the middle. I prototyped this process using plyr's ddply() function which works great for a huge percentage of my needs. But I need this aggregation step to be faster since I have to run 10K simulations. I'm already scaling the simulations in parallel but if this one...
I have a mysql database with a particular table with a little over 6 million rows and no indexes. A simple query such as SELECT ... FROM log ORDER BY log_date ASC will take an unacceptable amount of time. I obviously need to add indexes to the table, but am unsure of the most efficient way to go about this.
1) My first option would be t...
I am using routing with my ASP.NET WebForms application, using the technique described by Phil Haack:
http://haacked.com/archive/2008/03/11/using-routing-with-webforms.aspx
This works well most of the time, however on on occasion the first call to System.Web.Compilation.BuildManager.CreateInstanceFromVirtualPath is takes tens of seco...
I'm using MS Enterprise Logging Application Block in an ASP.NET website.
For production launch, I will set up a log listener in one of these locations:
Sql Server database
Windows event log
Text files
Which has the least impact on performance?
NB - I can't switch to Log4Net or ELMAH at this point, so please don't suggest that in yo...
I have a multi-threaded application using .NET 4.0. Sometimes this COM application referenced freaks out and just stop.
I want to know how to check for to see if this process is currently running within the questioned thread.
Example:
Exert from the main application:
ThreadedApp app = new ThreadedApp();
System.Threading.Thread thre...
I am trying to profile an ASP.NET application the Visual Studio 2010 ASP.NET profiler and I get the following output:
C:\MyWebApp>VSPerfAspNetCmd /i /Output:MyWebAppSampling.vsp http://localhost/MyWebApp
Microsoft (R) VSPerf ASP.NET Command, Version 10.0.0.0
Copyright (C) Microsoft Corporation. All rights reserved.
Configuring and att...
I have a WPF (.Net 3.5 sp1) application that loads a bunch of data on start up (it takes a few seconds to start up) but it performs fine after the data is loaded.
While the app is running, if I don't touch it for some time (say, a few hours), and then I alternate to it, it then "wakes up" very slowly.
My questions:
1) Why is that? Is...
I've got a multithreaded app that manipulates in-memory data (no database or network access). I tried this on 2 machines, one machine is Xeon dual quad core CPU, the other is twin dial-cores. 5 threads are spawned.
Then this multithreaded process starts it runs very quickly and the CPU usage is at 60% for 5 cores, the physical memory is...
Hi,
i have my application installed on a windows server, under apache web server. This project is facing a performance issue now, It is responding very slow. Web application is installed in Jboss, and apache webserver communicates with jboss via AJP protocol.
I am studying why this performance problem is hitting my web application.
Ove...
Hello,
we're working on a large windows forms .net application with a very large database. currently we're reaching 400 tables and business objects but thats maybe 1/4 of the whole application.
My question now is, how to handle this large ammount of mapping files with nhibernate with performance and memory usage in mind.
The business ...
Hey there,
I have a JSF 2.0 application running on GlassFish v3. It has EJBs that serve database data via JPA for the main applications sessions. Even on non-IDE app-server, the EJB calls are very slow. Between some pages, the user has to wait over 10 seconds to get to the next page.
The EJB runs on the same application server, and onl...
How can I test the time it takes to render a pylons page request?
Where do I hook this in? (and what class/method do I use to output this information)
I'm sort of new to both pylons and python.
...
Hi ,
I need from you to share your experience with any third party API for Google Maps V3 and your rating
please share information like
name , url , tech used (serverside , clientside ) , price or license , performance , any thing you would like to add
for example I like:
1-markermanager
2-http://google-maps-utility-library-v3....