[cvs] commit: horde/lib/MIME Contents.php Part.php

Michael M Slusarz slusarz at bigworm.colorado.edu
Wed Jan 8 23:25:01 PST 2003


slusarz     2003/01/08 23:25:01 PST

  Modified files:
    lib/MIME             Contents.php Part.php 
  Log:
  Avoid uniqid() like the plague! It takes an average of 20 ms _per call_. A
  much faster solution (my quick tests) is to use crc32() & microtime() instead.
  If we need a 32 *character* string (e.g. a boundary string), it is ok to
  still use md5(). (My quick tests show that md5() is about 3x slower than
  crc32(). Both are approx *700* times faster than uniqid()).
  
  Revision  Changes    Path
  1.46      +7 -7      horde/lib/MIME/Contents.php
  1.109     +3 -3      horde/lib/MIME/Part.php

  Chora Links:
  http://cvs.horde.org/diff.php/horde/lib/MIME/Contents.php?r1=1.45&r2=1.46&ty=u
  http://cvs.horde.org/diff.php/horde/lib/MIME/Part.php?r1=1.108&r2=1.109&ty=u


More information about the cvs mailing list