Skip to content

Settings parameter is not documented #7

@igorko

Description

@igorko

You can define some input parameters for algorithm (at least for javascript implementation https://github.com/olle/lz77-kit/blob/master/src/main/js/lz77.js#L37) but they are not documented

  1. referenceIntBase
  2. minStringLength
  3. defaultWindowLength

How changing this will influence the workflow.

  1. As I see referenceIntBase. which is 96, defines the last used character above 'space' (with code 32), so last character will be 127. which is ASCII 'DEL'. Is it ok to change value from 96 to 95 to allow only printable characters in encoded string? Can it have any side effects? Also javascript implementation produces UTF-16 characters(with String.fromCharCode), but while you are using this 96 value, you are in ASCII range. Can it be set to larger value to produce real UTF-16 string? Any use of it?
  2. How changing minStringLength will change algo behaviour?
  3. As I understand it can be changed but may be too large. How changing it will change algo behaviour?

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions