Better HN
topnewbestaskshowjobs
Log inSign up

lemire

7 karma · joined Aug 18, 2009 (17y ago) · 6 submissions

Submissions

comment 17y ago · link · parent

Implementing vectorized hash tables is no joke, so I don't think it is silly to have merely evoked the possibility rather than implementing it. It would have taken me days of work, possibly, and even then, people could have questioned my code. I do have a day job, doing academic research and teaching Computer Science. Maybe one day I will research vectorized hash tables, but the result will not be a mere blog post.

comment 17y ago · link · parent

Please consider vectorization. Natively, modern processors can multiply several 16-bit integers in the time it takes to multiply one pair of 64-bit integers.

comment 17y ago · link · parent

I am not sure optimization, cache misses, and interpreter overhead would obviously impact the computational complexity.

"You're assuming that people are not aware that multiplication is not always a constant-time operation."

I made no such assumption. But I suggest people consider the case of vectorization where, all of a sudden, it may matter quite a bit.

comment 17y ago · link · parent

I'm giving an example (vectorization) where experiments would be needed:

"Am I being pedantic? Does the time required to multiply integers on modern machine depend on the size of the integers? It certainly does if you are using vectorization. And vectorization is used in commercial databases!"

Sorry, I did not run the experiments this time around.

comment 17y ago · link · parent

My post was specifically about vectorization. In which case, I do claim that it matters.

comment 17y ago · link · parent

My post specifically refers to vectorization where you may use the fact that you can multiply 4 pairs of 16-bit integers in the time it takes to multiply a pair of 64-bit integers. So, you could operate four 16-bit hash tables in the time it takes to operate a 64-bit hash table.

That's all somewhat theoretical sure, but the point is to challenge your assumptions. (People do use vectorization, right now.)