Ticket #10 (closed defect: fixed)

Opened 3 years ago

Last modified 3 years ago

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

Changed 3 years ago by xue

  • owner changed from wei to xue
  • version set to 3.0
  • milestone set to Version 3.0 beta release

Changed 3 years ago by xue

  • status changed from new to closed
  • resolution set to fixed
Note: See TracTickets for help on using tickets.