C# Class Platform.Sandbox.CompressionExperiments

显示文件 Open project: Konard/LinksPlatform

Public Methods

Method Description
PrecompressSequence1 ( this links, ulong sequence ) : ulong[] Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Slow version (pairs' frequencies dictionary is recreated).
PrecompressSequence2 ( this links, ulong sequence ) : ulong[] Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Faster version (pairs' frequencies dictionary is not recreated).
Stats ( ) : void
Test ( ) : void

Private Methods

Method Description
GetPageContents ( string url ) : string

Method Details

PrecompressSequence1() public static method

Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Slow version (pairs' frequencies dictionary is recreated).
public static PrecompressSequence1 ( this links, ulong sequence ) : ulong[]
links this
sequence ulong
return ulong[]

PrecompressSequence2() public static method

Original algorithm idea: https://en.wikipedia.org/wiki/Byte_pair_encoding . Faster version (pairs' frequencies dictionary is not recreated).
public static PrecompressSequence2 ( this links, ulong sequence ) : ulong[]
links this
sequence ulong
return ulong[]

Stats() public static method

public static Stats ( ) : void
return void

Test() public static method

public static Test ( ) : void
return void