Hashons peu mais hashons bien

Si le Prince Charmant avait connu les fonctions de hachage, il n'aurait pas été obligé de tester les pieds de tout le royaume avant de trouver Cendrillon !On prête généralement peu d'attention à la méthode hashCode(), présente sur tous les objets Java. Pourtant, elle est fondamentale pour les performances et la cohérence des données - Java 8 en propose d'ailleurs une nouvelle implémentation plus efficace.Alors, d'où vient-elle ? A quoi sert-elle ? Comment l'implémenter efficacement ? Et surtout, le Prince Charmant aurait-il pu retrouver sa dulcinée en O(1) ? Author: Olivier Croisier Olivier Croisier is a certified Java expert, Trainer and Speaker with more than 12 years of experience. Olivier works as a freelance at Moka Technologies (mokatech.net), helping his clients migrate to Java 8, build bleeding-edge tech stacks and frameworks, and bring back the joy of coding in their teams. You can find Olivier on Twitter (@OlivierCroisier) and on his Java blog "The Coder's Breakfast" (thecodersbreakfast.net)
Length: 51:10
Views 223 Likes: 3
Recorded on 2015-04-10 at Devoxx France
Look for other videos at Devoxx France.
Tweet this video