GithubHelp home page GithubHelp logo

Question about max byte slice about avro HOT 6 CLOSED

torwig avatar torwig commented on June 10, 2024
Question about max byte slice

from avro.

Comments (6)

torwig avatar torwig commented on June 10, 2024 1

My apologies, gentlemen.

from avro.

nrwiersma avatar nrwiersma commented on June 10, 2024 1

No harm no foul. i could have scrutinised this more, but didn't.

from avro.

nrwiersma avatar nrwiersma commented on June 10, 2024

This is a bug in maxByteSliceSize. Thanks for catching this.

from avro.

hhromic avatar hhromic commented on June 10, 2024

My question is: 1024*1024 it's not equal to 1 MiB. Is there a typo in the configuration parameter or typo in the maxByteSliceSize value? Or there is somewhere multiplication by 1024 before using it?

I know this was recently fixed, but I got very curious about this statement. To my understanding, 1024*1024 is equal to 1 MiB. The PR fixing this replaced 1024*1024 with 1_048_576, but both expressions are equal.

fmt.Println(1024*1024 == 1_048_576)
// Output: true

So, I can't wrap my head around what was fixed by it 🙈.

from avro.

torwig avatar torwig commented on June 10, 2024

@hhromic Yes, indeed equal. I understood it wrong and persuaded others.

from avro.

hhromic avatar hhromic commented on June 10, 2024

Ah, peace of mind restored! 😄.
I still liked the constant renaming, it is better now IMHO 👍.

from avro.

Related Issues (20)

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.