compactify

object compactify
class Object
trait Matchable
class Any

Value members

Concrete methods

def apply(s: String): String

COMPACTIFY

COMPACTIFY

The hashed name has the form (prefix + marker + md5 + marker + suffix), where

  • prefix/suffix.length = MaxNameLength / 4
  • md5.length = 32

We obtain the formula:

FileNameLength = 2*(MaxNameLength / 4) + 2.marker.length + 32 + 6

(+6 for ".class"). MaxNameLength can therefore be computed as follows:

Concrete fields

lazy val md5: MessageDigest