¡@

Home 

java Programming Glossary: optimisation

Java: If vs. Switch

http://stackoverflow.com/questions/1061101/java-if-vs-switch

Inlining in Java

http://stackoverflow.com/questions/1159087/inlining-in-java

class is loaded which overrides the method it can undo its optimisation. Obviously making the method final mean that's never required.....

Return value of assignment operator

http://stackoverflow.com/questions/12850676/return-value-of-assignment-operator

Sun's javac doesn't follow this behaviour possibly as an optimisation. Due to the threading here the behaviour of method1 would be..

When comparing two Integers in Java does auto-unboxing occur?

http://stackoverflow.com/questions/1514910/when-comparing-two-integers-in-java-does-auto-unboxing-occur

y 0 should still be efficient. Of course this is micro optimisation territory and you should use the code you find clearest after..

Java Programming - Where should SQL statements be stored? [closed]

http://stackoverflow.com/questions/1661921/java-programming-where-should-sql-statements-be-stored

Should stored procedures be used only for performance optimisation or they are a legitimate abstraction of the database structure.. query language e.g. HQL Does not lend itself to optimisation abstraction Can lack referential integrity Substitutes for lack..

Enum values().length vs private field

http://stackoverflow.com/questions/1741708/enum-values-length-vs-private-field

in other answers. Of course this is a bit of a micro optimisation in itself... but one which ends up with simpler code in the..

Garbage collection behaviour for String.intern()

http://stackoverflow.com/questions/2431540/garbage-collection-behaviour-for-string-intern

this question In fact this not a garbage collection optimisation but rather a string pool optimization. When you call String.intern.. Besides the fact is String.equals underlyingly calls as an optimisation making it sure interned strings optimization are used under..

Tuning garbage collections for low latency

http://stackoverflow.com/questions/2781797/tuning-garbage-collections-for-low-latency

it is based on in linux but it uses MPO memory placement optimisation on Solaris some details on one of the GC guys blogs Since you're..

Prime number calculation fun

http://stackoverflow.com/questions/288200/prime-number-calculation-fun

having some fun with optimising it. First attempt with no optimisations the above code has a couple ran around 52.6min to find the.. 52.6min to find the first 150000 prime numbers. This optimisation is running around 47.2mins. If you want to have a go and post..

Integers caching in Java [duplicate]

http://stackoverflow.com/questions/3131136/integers-caching-in-java

caching objects for int values from 128 to 127 for some optimisation purposes. In this way references of c and d is the same. Can..

What is the Most Efficient Java-Based streaming XSLT Processor?

http://stackoverflow.com/questions/460895/what-is-the-most-efficient-java-based-streaming-xslt-processor

I would like to do this with XSLT. I am more interested in optimisation for memory rather than optimisation for speed though speed would.. am more interested in optimisation for memory rather than optimisation for speed though speed would be good too . Which Java based..

Java XPath (Apache JAXP implementation) performance

http://stackoverflow.com/questions/6340802/java-xpath-apache-jaxp-implementation-performance

against an always available DOM Document only. So if an optimisation can be done it will be quite easy to achieve. My question Is.. 2.7.0 Xalan 2.7.1 Saxon HE 9.3 jaxen 1.1.3 without optimisation 10400ms 4717ms 25500ms reusing XPathFactory 5995ms 2829ms ..

how the subString() function of string class works

http://stackoverflow.com/questions/704319/how-the-substring-function-of-string-class-works

if your JVM doesn't make the small ratio sub string optimisation then there's a chance that it does copy only the relevant portion..

Implementing a matrix, which is more efficient - using an Array of Arrays (2D) or a 1D array?

http://stackoverflow.com/questions/732684/implementing-a-matrix-which-is-more-efficient-using-an-array-of-arrays-2d-o

Efficiently compute Intersection of two Sets in Java?

http://stackoverflow.com/questions/7574311/efficiently-compute-intersection-of-two-sets-in-java

be calling on large sets a very large number of times so optimisation is important. I cannot modify the original sets. I have looked..

What makes reference comparison (==) work for some strings in Java?

http://stackoverflow.com/questions/9698260/what-makes-reference-comparison-work-for-some-strings-in-java

you see the output you do for s1 s2 . It's essentially an optimisation in the VM to avoid creating a new string object each time a..