Ticket #10 (closed defect: fixed)
hashing in TAssetManager
| Reported by: | xue | Owned by: | xue |
|---|---|---|---|
| Priority: | major | Milestone: | 3.0beta |
| Component: | Prado Framework v3 | Version: | 3.0 |
| Severity: | Keywords: | ||
| Cc: |
Description
Shorter path definitely looks better.
What is the collision rate comparison between crc32 and md5?
I suggest using 8 characters (hexical representation of crc32), which can be done by simply a call to sprintf('%x',crc32($value));
I did a small profiling. For 1000 calls of hash, the current implementation takes about 0.06sec, md5() takes 0.008sec, while using the above 8 chars approach it takes 0.004sec.
Change History
Note: See
TracTickets for help on using
tickets.
