Giter Site home page Giter Site logo

Warnings at compile time about paq8px HOT 5 OPEN

hxim avatar hxim commented on August 22, 2024
Warnings at compile time

from paq8px.

Comments (5)

GotthardtZ avatar GotthardtZ commented on August 22, 2024 1

@L3P3
Thanks for the suggestion. I may acually do that. (Or use a 7-byte array as another union there. )
Compiler warnings are better to be eliminated.

from paq8px.

GotthardtZ avatar GotthardtZ commented on August 22, 2024

Thank you for your alertness and reporting these warnings!

These are false positives. The solution in ContextMap is not compiler-friendly, I have to admit.

The compiler is confused by the fact that we are naming each of the 7 bytes in HashElementForContextMap independently (so they look like just 7 independent bytes) and at the same time we are transitioning from one to another with the p pointer (so we are treating the HashElementForContextMap as a 7-byte array). The warning is about this transition.

We could make the warning disappear, if we'd have a 7-byte array in HashElementForContextMap, but then we wouldn't be able to clearly reference these state bytes independently (such as bitState and bitState0, bitState1, etc.)

from paq8px.

L3P3 avatar L3P3 commented on August 22, 2024

You could use constants for the names like byte[MAP_BITSTATE0].

from paq8px.

rafael2k avatar rafael2k commented on August 22, 2024

Knowing these warnings are false positives is good!
So far, with simple binary data, I got no problem at all. I'm using -3, is that ok? I get good results, sometimes better than higher levels.

from paq8px.

GotthardtZ avatar GotthardtZ commented on August 22, 2024

Yes, any compression level is good to use. Lower levels use less memory thus it can't remember patterns encounterd too far in the "past". It makes the modelling more adaptive.
99% of the cases higher levels give better compression ratio, but there are some files with radically changing file content where lower leves work better.

from paq8px.

Related Issues (17)

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.