java Programming Glossary: critical
The performance impact of using instanceof in Java http://stackoverflow.com/questions/103564/the-performance-impact-of-using-instanceof-in-java I want to stick to Java but the performance of the app is critical. It would be cool if someone that has been down this road before..
Why is processing a sorted array faster than an unsorted array? http://stackoverflow.com/questions/11227809/why-is-processing-a-sorted-array-faster-than-an-unsorted-array rule of thumb is to avoid data dependent branching in critical loops. such as in this example Update GCC 4.6.1 with O3 or ftree..
What is the difference between a synchronized method and synchronized block in Java? http://stackoverflow.com/questions/1149928/what-is-the-difference-between-a-synchronized-method-and-synchronized-block-in-j held only during the synchronized block otherwise known as critical section . In practice the JVM is permitted to optimize by removing..
What is the best method to capture images from a live video device for use by a Java-based application? http://stackoverflow.com/questions/115835/what-is-the-best-method-to-capture-images-from-a-live-video-device-for-use-by-a while I really like their solution I would appreciate any critical feedback on my specific points of interest. This is how I define..
Lightweight Java IDE [closed] http://stackoverflow.com/questions/1182071/lightweight-java-ide ant deploy to Tomcat and use a plethora of secondary non critical tools. I'm going to put Jetty ant and an SVN client on this..
What is the difference between NoClassDefFoundError and ClassNotFoundException? http://stackoverflow.com/questions/1457863/what-is-the-difference-between-noclassdeffounderror-and-classnotfoundexception produced or encountered at compile time. This is a pretty critical error as the program cannot be initiated by the JVM. On the..
Use JNI instead of JNA to call native code? http://stackoverflow.com/questions/1556421/use-jni-instead-of-jna-to-call-native-code to use JNA or BridJ and revert to jni if performance is critical because if you need to call native functions frequently performance..
Spreadsheet-like control for a web application? [closed] http://stackoverflow.com/questions/204310/spreadsheet-like-control-for-a-web-application closed A client of mine is looking to convert a critical 'application' based on multiple very complex spreadsheets into..
Why filename in java should be same as class name? http://stackoverflow.com/questions/2134784/why-filename-in-java-should-be-same-as-class-name exceptions to everything and many Getters are actually critical object business logic like String.length which would be required..
Java VM: reproducable SIGSEGV on both 1.6.0_17 and 1.6.0_18, how to report? http://stackoverflow.com/questions/2299250/java-vm-reproducable-sigsegv-on-both-1-6-0-17-and-1-6-0-18-how-to-report regularly reaches months of uptime I only reboot it when critical security patches affecting my trimmed down and hardened Debian..
Set margins in a LinearLayout programmatically http://stackoverflow.com/questions/2481455/set-margins-in-a-linearlayout-programmatically Verbose lp.weight 1.0f This is critical. Doesn't work without it. buttonsView.addView btn lp ViewGroup.LayoutParams..
Catching java.lang.OutOfMemoryError? http://stackoverflow.com/questions/2679330/catching-java-lang-outofmemoryerror Use 0M 247M 100 Memory Use 0M 247M If running something critical I usually catch the Error log it to syserr then log it using..
What is a raw type and why shouldn't we use it? http://stackoverflow.com/questions/2770321/what-is-a-raw-type-and-why-shouldnt-we-use-it code in existence that did not use generics. It was deemed critical that all this code remains legal and interoperable with new..
How to solve the “Double-Checked Locking is Broken” Declaration in Java? http://stackoverflow.com/questions/3578604/how-to-solve-the-double-checked-locking-is-broken-declaration-in-java is no locking if the field is already initialized it is critical that the field be declared volatile Item 66 . Here is the idiom..
In Java critical sections, what should I synchronize on? http://stackoverflow.com/questions/416183/in-java-critical-sections-what-should-i-synchronize-on Java critical sections what should I synchronize on In Java the idiomatic.. I synchronize on In Java the idiomatic way to declare critical sections in the code is the following private void doSomething..
Java Generics http://stackoverflow.com/questions/490091/java-generics . When you start dealing with Factory classes it is critical to deal with contracts rather than specific implementations...
What's the difference between ConcurrentHashMap and Collections.synchronizedMap(Map)? http://stackoverflow.com/questions/510632/whats-the-difference-between-concurrenthashmap-and-collections-synchronizedmap to date view of the map. Use the first if performance is critical and each thread only inserts data to the map with reads happening..
A rotated square panel in Java GUI http://stackoverflow.com/questions/6333464/a-rotated-square-panel-in-java-gui java swing gui awt share improve this question The critical thing seems to be painting the components after rotating the..
Understanding strange Java hash function http://stackoverflow.com/questions/9335169/understanding-strange-java-hash-function which defends against poor quality hash functions. This is critical because HashMap uses power of two length hash tables that otherwise..
|