Thread Stilfrage zum Klassenentwurf (10 answers)
Opened by rosti at 2011-05-15 19:33

rosti
 2011-05-15 21:42
#148651 #148651
User since
2011-03-19
3213 Artikel
BenutzerIn
[Homepage]
user image
Boah!!!!

Jetzt habe ich doch noch was dazugelernt!!!

Vielen Dank PQ, das kannte ich noch nicht, geht einfandfrei.

@Moritz: Du hast Recht, übern Hash wirds langsamer, hier der Bench:

Code: (dl )
1
2
3
4
5
6
7
8
Benchmark: timing 10000 iterations of method, tiehash...
method: 0 wallclock secs ( 0.01 usr + 0.00 sys = 0.01 CPU) @ 666666.67/s (n=10000)
(warning: too few iterations for a reliable count)
tiehash: 0 wallclock secs ( 0.06 usr + 0.00 sys = 0.06 CPU) @ 161290.32/s (n=10000)
(warning: too few iterations for a reliable count)
Rate tiehash method
tiehash 161290/s -- -76%
method 666667/s 313% --

View full thread Stilfrage zum Klassenentwurf