|
Bas de page | |
---|---|
Auteur | Sujet : compareTo() vs equals() |
![]() Publicité | Posté le 12-11-2010 à 09:03:42 ![]() ![]() |
olivthill | D'après la doc, par exemple http://leepoint.net/notes-java/dat [...] jects.html , il semble que equals() soit plus primitif que compareTo(), et donc soit plus rapide, mais c'est à vérifier par des mesures. En matière d'optimisation, il vaut toujours mieux mesurer que spéculer.
|
sircam I Like Trains |
--------------- Now Playing: {SYNTAX ERROR AT LINE 1210} |
olivthill |
|
exhortae Membre du Cartel des Médecins | Un article de 2006 |
phnatomass Je m'empare de ton esprit !! | Que l'exécution du programme en langage Java soit un peu plus lent que son homologue développé en C/C++ est une réalité dans de nombreux cas.
|
gilou ModérateurModosaurus Rex | Le fait qu'en moyenne un programme java soit plus lent qu'un programme C++, ce n'est qu'un effet de bord du niveau moyen d'un programmeur Java vis à vis du niveau moyen d'un programmeur C++, non? --------------- There's more than what can be linked! -- Le capitaine qui ne veut pas obéir à la carte finira par obéir aux récifs. -- Il ne faut plus dire Sarkozy, mais Sarkozon -- (╯°□°)╯︵ ┻━┻ |
esox_ch | C'est clair, suffi de voir le nombre de boulets qui posent dans la cat C/C++ parce qu'ils ont "perdu" leurs pointeurs pour s'en rendre compte --------------- Si la vérité est découverte par quelqu'un d'autre,elle perd toujours un peu d'attrait |
![]() Publicité | Posté le 15-11-2010 à 16:30:16 ![]() ![]() |
sircam I Like Trains | Bande de trolls gluants... Mais que fait la modération? --------------- Now Playing: {SYNTAX ERROR AT LINE 1210} |
Bidem | Sinon pour en revenir à la question d'origine :
Message cité 3 fois Message édité par Bidem le 16-11-2010 à 10:21:50 |
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 16-11-2010 à 10:36:49 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
Bidem | J'ai réessayé avec ton init et ça ne change pas grand chose à mes résultats :
|
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
esox_ch | A mon avis c'est pas tant le fait que ce soit 64 bits que la différence entre les optimisations internes JVM Client VS JVM Server --------------- Si la vérité est découverte par quelqu'un d'autre,elle perd toujours un peu d'attrait |
masklinn í dag viðrar vel til loftárása |
Message édité par masklinn le 16-11-2010 à 14:12:08 --------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
sircam I Like Trains |
--------------- Now Playing: {SYNTAX ERROR AT LINE 1210} |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
sircam I Like Trains |
--------------- Now Playing: {SYNTAX ERROR AT LINE 1210} |
masklinn í dag viðrar vel til loftárása |
--------------- I mean, true, a cancer will probably destroy its host organism. But what about the cells whose mutations allow them to think outside the box by throwing away the limits imposed by overbearing genetic regulations? Isn't that a good thing? |
sircam I Like Trains |
--------------- Now Playing: {SYNTAX ERROR AT LINE 1210} |
leonhard |
|
leonhard |
|
Bidem |
|
sircam I Like Trains |
--------------- Now Playing: {SYNTAX ERROR AT LINE 1210} |
![]() Publicité | Posté le ![]() ![]() |
Sujets relatifs | |
---|---|
Equals | [.Net 2 CLR] relation entre GetHashCode() et Equals() |
Imposer une methode Equals pour une recherche dans une List | [JAVA]trier un tableau sans comparable ni compareTo |
NullPointerException avec la methode equals et split !!!! [Résolu] | Stress sur un TreeSet ! objets non equals removés |
[Java] equals() = bizarre | |
Plus de sujets relatifs à : compareTo() vs equals() |