Optimize qHash(Path) to not allocate any memory.

Authored by mwolff on Jan 21 2014, 4:54 PM.

Description

Optimize qHash(Path) to not allocate any memory.

We do this by leveraging KDevHash which we feed with the individial
segment's qHash values.

Before:

0.00077 msecs per iteration (total: 51, iterations: 65536)

After:

0.00048 msecs per iteration (total: 64, iterations: 131072)

So about 38% faster.

Details

Committed
mwolffJan 21 2014, 4:59 PM
Parents
R32:8f7cae74a902: Make artificial code representation work reliably with Path.
Branches
Unknown
Tags
Unknown