Suppose you have a private static method called Inst() which allows the class to retrieve the single instance of itself in the application in its static methods. Maybe Inst() is defined something like..
return App::GetApp()->CurrentState()->MyClass(); // Inst returns a reference
Compare this...
// I prefer this
Inst().DoThis();
Inst(...
I've heard all these great experiences of how great and elegant jQuery is, but I'm 0 for 2 trying to implement jQuery controls in real world projects due to poor performance. I am running into a similar problem as Richard this time. The jQuery UI DatePicker failed User Acceptance Testing in an ASP.NET application I'm working on because...
Hi i run performance testing in my company, but i want to automate the report generation in such a way that i can get reports from splunk, wily introscope and cacti to my email once the testing is completed, any suggestions how i can proceed ?
No one has suggestions :(
...
Most web frameworks and "best practices" are not suitable for very high performance sites and the whitepapers from vendors out there ain't worth the paper they are printed on.
So where should someone look to find books, tutorials or other resources on this subject?
...
I am on Resharper 4.x and VS2008.
R# seems to slow down the living crap out of VS2008. And of course, the memory usage can easily go to 500MB on a middle of the road Winforms solution with 7-8 solutions.
Now that Resharper 5.x is out, can anyone tell me whether either perf or memory issues have been improved for use with VS2008?
...
I'm developing an application under linux that will need to support around 250 connections and be transmitting large files over TCP sockets in the 100MB+ size range. The aim is to tune for throughput rather than latency. I want to keep saturated 2x1Gbit ethernet connectons at all times. These will be channel bonded.
It's expected tha...
[BACKGROUND]
We are currently trying to solve a performance problem. Which is searching for data and presenting it in a paginated way takes about 2-3 minutes.
Upon further investigation (and after several sql tuning), it seems that searching is slow just because of the sheer amount of data.
A possible solution that I'm currently inves...
I am running a Perl server with 10 threads. They never get destroyed until the program exits, but this is something I intend to have as much uptime as possible, so that's why this is an issue for me. The threads handle a simple task many times. When I start the server and all the threads are started, I see that I have 288.30 MB free. Aft...
How would I use numpy to calculate the intersection between two line segments?
In the code I have segment1 = ((x1,y1),(x2,y2)) and segment2 = ((x1,y1),(x2,y2)). Note segment 1 does not equal segment2. So in my code I've also been calculating the slope and y-intercept, it would be nice if that could be avoided but I don't know of a way...
So, I've been seeing a lot of SQL examples on this site. I have a question about the relative performance of inner joins (plain JOIN) and cross joins (SELECT foo FROM bar,baz WHERE). Turns out the question has already been asked:
http://stackoverflow.com/questions/1018822/inner-join-versus-where-clause-any-difference
But I still have...
They seem to share a lot of the same characteristics but as far as I can tell, Python 2.5 is faster than 1.8.7 by a lot.
Is there a deeper underlying reason behind this?
...
I'm developing an application where, to satisfy the performance requirements, tuning of low-level network stuff (such as TCP window size etc) seems to be required.
I found the magnitude of my knowledge to be a bit better than "there's TCP and there's UDP", which is far from enough for this task.
What resources might I study to get a be...
Most questions I've seen on similar subjects relate to how to speed up inserts into a table.
I want to know what can I do to speed up deletes?
I can't truncate nor drop a table, I have to do something similar to
DELETE FROM table WHERE id IN (SELECT id FROM other_table)
...
I have a simple method that returns a Nullable Int32 from a DataReader rather than the built in GetInt32.
I am calling this method many many times and have one situation where any time I can shave off of it would be beneficial.
Can anyone suggest any alternative and faster ways of getting a nullable Int32 out of the DataReader?
privat...
i am running a query in oracle with CTE.
When i execute the query it works fine in select statement but when i use insert statement it takes ample of time to execute.Any help here is the code
INSERT INTO port_weeklydailypricesTest (co_code,start_dtm,end_dtm)
SELECT * FROM
(
WITH CTE(co_code, start_dtm, end_dtm) AS...
Recently i came across a project that needed a lot of improvement. So i started searching the web for some techniques that could enhance the loading speed of this web application.
After a while i found some techniques but they gave me just a couple of seconds boost.
So, dear co-programmers, please fill in any coding/enhancing techniqu...
Hello all
I'm working on a WCF service application which does lot of manipulations on XML files. Before i start looping the nodes, elements, attributes and all the other stuffs i want to know the useful functions that are available on XmlNode, XmlElement, XmlDocument and all other Xml related classes which can be used 'in place of' loop...
I was writing a file parser in Perl, so had to loop through file. File consists of fixed length records and I wanted to make a separate function that parses given record and call that function in a loop. However, final result turned to be slow with big files and my guess was that I shouldn't use external function. So I made some dummy te...
Dear all
I am looking at writing an application that handles time series data and want to shove to heavy lifting data work off into Core Data. My question is this - from a speed of retrieving and ease of manipulation perspective, would it be better to model out the entities or will it likely be easier to 'store' the time series data po...