GithubHelp home page GithubHelp logo

libreips's People

Contributors

rzumer avatar

Watchers

 avatar

libreips's Issues

Do not encode chunks with offset 0x454f46

Decoders may (and in LibreIPS's case, will) interpret this as an EOF marker.

If a chunk should begin on this byte, rewind to the previous byte and start a record there instead.

This would have implications on lookahead (#2) as well.

Scope 2-pass encoding at the record level

This requires buffering the output bytes instead of record chunks. Only one record would be needed in memory, and management would be simpler, as it could be kept in the stack (the data will still be malloc()ed).

The goal is to get better performance by avoiding the allocation of record chunks. Performance tests would be useful to implement before trying this.

An alternative would be to store all records on the stack, but with large patches the cost could be prohibitive.

Support patching to a larger size

Currently, when applying a patch, the output file is assumed to be the same size as the input. This is not necessarily the case, as a patch can write additional data at the end of the original file.

This will likely require an API change.

Fail gracefully when encoding above the maximum offset

As pointed out here, it is not possible to apply a patch beyond the sum of the maximum offset and size.

As a first step, the encoder should return, and the CLI indicate that an internal error has occurred. Better error handling, and support for encoding up to the sum of the maximum offset and the maximum size, can come later.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.