3 ms·
I don't see much exposition of principles going on when the author asserts that hash functions are much slower than comparison functions, for example. If you're
by neilc 17y ago
I don't see much exposition of principles going on when the author asserts that hash functions are much slower than comparison functions, for example. If you're going to make an empirical argument, you need empirical evidence.
- RiderOfGiraffes 17y agoI'm baffled by some of the comments here, I really am. I'm going to leave this for a bit and come back later to see if I can make sense of it. Clearly people disagree with me, but it seems to me that there are several principles and concerns that are validly raised. This is an opinion piece - he doesn't like hash tables. For him personally, he prefers not to use them and instead to use other structures such as balanced trees. He says that there are gotchas with hash-tables that aren't always realised by those who don't read the small print and take care. That seems unassailable to me. There are gotchas. He gives an example of a bad hash-function, and points out that you need good ones. Designing a good hash function is part-art, part-science, and can be very hard. Certainly it deserves a full scholarly article and justice couldn't be done in a blog like this. You've highlighted: > the author asserts that hash functions are > much slower than comparison functions, for > example. He said: > hash functions have to be blindingly fast - because > comparisons are already really fast. That seems pretty clear to me. The reasons are then expanded, but the point remains. Crypto-hash functions are not fast, and yet I've seen them suggested as good hash functions. In many cases, though, they're not fast enough. But this isn't really the place for a full point-by-point discussion of the issues. I think the piece makes useful and interesting points. It's not a journal article, it's a blog piece that allows the author to vent his prejudices with some supporting arguments. If want it done properly, read Knuth. I think many of the criticisms here are mis-placed.
- scott_s 17y agoI think the real objection is that it's a meandering rant, not a well-structured essay explaining the pitfalls of using hash tables.
- joe_the_user 17y agoIn your modded-down post, I think you were intending to mean numeric evidence like bench-marks but you actually wrote that you weren't convinced by evidence, period. The author makes some logical arguments, which could be considered evidence. But as the GP points out, a lot of his assertions at least seemed to lack both numeric and logical evidence - so your assertion comes-off a bit muddle headed. I found some of the article's points interesting too but I don't think this is problem people are having with this earlier post.