performance-comparison

Why difference in performance between the TWO queries?

I am using SQL Server 2008, and I have two tables Table1 contains 3.5 million records +----+-------------+ | pk | dim1 | +----+-------------+ indexing applied on column **pk** Table2 contains 15 million records +----+-------------+ | fk | fact1 | +----+-------------+ indexing applied on column **fk** I ran 2 querie...

ElementName vs. FindVisualAncestor

How does the XAML engine search for Binding.ElementName vs RelativeSource.AncestorType. It would take a huge different when I am searching for a parent Window or Page (that x:Name was set in it), if the ElementName searches up (meaning starting from near current element up the tree levels children, then it's better to use the AncestorTy...

.NET should I store references or values?

I need to store in my object which values have already been handlerd, I am doubting what would cost more performance, should I create an array that stores: The instance references (they are not structs, only ref classes) The hashcode of the items The name of the name of the properties (string) that have been handled Update my aim is ...

Is Int16 equality test faster than Int32?

Possible Duplicate: .NET Integer vs Int16? Which is faster for large numbers of tests in a tight loop? static bool IsEqual(Int16 a, Int16 b) { return a==b; } static bool IsEqual(Int32 a, Int32 b) { return a==b; } static bool IsEqual(Int64 a, Int64 b) { return a==b; } or is there no difference? ...

"asdf".Length > 0 vs. "asdf".Any()?

How is an arrays Length property identified, by an internal variable (i.e. m_Length) or it's gonna enumerate thru all the items of the array. The difference takes place if I want to check whether an array contains any elements. Dim asdf = { "a"c, "s"c, "d"c, "f"c } Dim any = asdf.Any() Dim any2 = asdf.Length > 0 (Also note that Any i...

Which java webframework for high performance and scalability

I have to design a java based web application, it should support be highly scalable, should support almost 500 concurrent users with response time less than 3 secs. I have short listed 5 frameworks(Struts, Spring MVC, JSF, Wicket and GWT). My questions are: 1.I want to compare the performance of these framworks similar to the way it de...

jquery parent descendant selector

Why is 1 faster than 2? $('#p1').find('span'); $('#p1 span'); ...

Why Does Looping Beat Indexing Here?

A few years ago, someone posted on Active State Recipes for comparison purposes, three python/NumPy functions; each of these accepted the same arguments and returned the same result, a distance matrix. Two of these were taken from published sources; they are both--or they appear to me to be--idiomatic numpy code. The repetitive calcula...

Comparison permormance Nunit vs MsTest

Hi, I'm trying to find good comparison about performance of mstest(VS 2008) and nunit(newest). I have found only atricles about features, not examples about times of execution :/ I would be grateful for help ...

Java system.out vs new PrintStream

What would use more memory if it were to output a message that was 15,000 lines? Would System.out.println us more memory? or Would System.setErr(new PrintStream(new FileOutputStream("tonsoflines.log"))) use more memory? What uses more process or requires more memory to function? Visual output in a console window or writing to a file w...

java performance within jruby

An algorithm written in Java should be faster than the same algorithm written in JRuby, right?. However, if I write the algorithm in Java and then call it from JRuby, will I still get the performance advantages of java? I ask this because I am writing a very complicated utility class for my JRuby on Rails app and need to choose whether...

Performance of app on Android Phone Emulator vs Actual Device ?

I am working on a compute intensive app for Android. I do not have any device yet to test performance. However, the performance on emulator is a bit slower than expected. I see an old question about some estimation of emulator vs device. What are your experiences while developing apps with recent SDK Froyo/2.2. Is performance observed o...

EJB Vs WebService? Performance point of view

Hi, Well We have situation to decide now. I thought stackoverflow is best place to discuss. Background: We have 2 JVMs Enterprise Application server and one application deployed on each of them. we need to enable the business functionality invocation from one machine to other. Let assume one is client and another is server. Now from ...

XML database vs SQL Server database

Hi, I have existing application which uses Sql server 2005 as a backend. It contains huge records, I need to join tables which contain 50000-70000. In client machine it slowdown. So, can I improve its performance by using XML as a backend? I have checked that the size of xml file becomes 35MB to 50MB, when I load data. I also need to...

What is the reason behind this huge Performance difference in .Net 4

I was just doing some research on RedBlack Tree. I knew that SortedSet class in .Net 4.0 uses RedBlack tree. So I took that part out as is using Reflector and created a RedBlackTree class. Now I am running some perf test on this RedBlackTree and SortedSet inserting 40000 sequential integral values (starting from 0 to 39999), I am astonis...

Sql server vs MS Access performance

Hi, I have existing application which uses Sql server 2005 as a backend. It contains huge records, I need to join tables which contain 50K-70K. Client m/c is lower hardware. So, can I improve its performance by using MS Access as a backend? I also need to search operation on access file. So, which one is better for performance. Queryin...

Consuming Multiple Webservices at once

Hi All, I´ve been checking Kayak.com and many other comparison websites were they create on demand queries to multiple web services in order to display best results. I was wondering which is the best strategy to consume multiple web services at once like these website do. thank you so much. sebastian. ...

String comparison in dotnet framework 4

Hi all, I explain my problem and interrogation (excuse my bad english), i have a dotnet exe which every milliseconds past to processing is very important. This program do lot's of string comparison (most of it is "string1.IndexOf(string2, StringComparison.OrdinalIgnoreCase")) When i switch in framework 4 my program time is twice than...

Type equality performance

I have an iterator of objects and I have to take specific action if the item is of some type. That type is a friend class in the runtime, and therefore cannot be used in design-time. So my question is, which of the following will cost less performance: Private Const myType As String = "System.HiddenNameSpace.MyHiddenType" Sub Compare()...

Linq to Objects: filtering performance question

I was thinking about the way linq computes and it made me wonder: If I write var count = collection.Count(o => o.Category == 3); Will that perform any differently than: var count = collection.Where(o => o.Category == 3).Count(); After all, IEnumerable<T>.Where() will return IEnumerable<T> which doesn't implement Count property, so...