Archives de catégorie : performance en JAVA

HashMap and ConcurrentHashMap Microbenchmark

Is ConcurrentHashMap always faster than HashMap for concurrent access ? If the map is accessible by concurrent threads, ConcurrentHashMap without additional synchronization mechanisms is often enough for reading operations. We may have some delay in the returned values by the … Continuer la lecture

Publié dans benchmark, java, map, microbenchmark, performance en JAVA | Marqué avec | Laisser un commentaire

Java Map and thread-safety

Can we use no synchronized java.lang.Map instance fields in a multi-threaded context without explicit synchronization?No synchronized implementations of the java.util.Map interface such as java.util.HashMap or java.util.TreeMap are fast implementations as these are not thread-safe. In some use cases, the thread safety … Continuer la lecture

Publié dans java, performance en JAVA, thread | Laisser un commentaire

Le véritable coût des exceptions en Java

Sur le projet sur lequel je travaille actuellement, un de mes collègues (ouvert au débat, compétent et affable) et moi avons échangé sur la manière de gérer la validation des règles fonctionnelles. Une chose en amenant une autre, est avancé … Continuer la lecture

Publié dans performance en JAVA, Uncategorized | Laisser un commentaire