Code Monkey home page Code Monkey logo

Comments (3)

bblanchon avatar bblanchon commented on May 24, 2024

Hi @judge2005,

I read the ArduinoJson 7 introduction which was telling me how much memory 32 bit processors have

I'm assuming you're talking about this article, where I say "32-bit microcontrollers have much more memory".
In this sentence, as in the whole "code size" section, I was talking about the Flash memory, not the RAM.
Indeed, the new UNO has eight times more Flash than the previous generation.

I was talking about the Flash memory, but even if I were talking about RAM, it would still be true: the new UNO has sixteen times more RAM than the previous generation.
But I get your point: the board has more RAM, but a huge part is already consumed or reserved.

Fortunately, ArduinoJson 7 doesn't consume more RAM than ArduinoJson 6, as you can see with the ArduinoJson Assistant.
Moreover, ArduinoJson 7 doesn't need a contiguous memory block, so it can run when the heap is fragmented.

Please give it a try, and let me know if you have any problems.

Best regards,
Benoit

from arduinojson.

judge2005 avatar judge2005 commented on May 24, 2024

Thanks. I tried AduinoJson 7 and it is a definite improvement. I didn't notice any increase in firmware size and it definitely handles low memory (well, actually fragmented memory) better. I forced my application to do all the memory-hungry things and it never went wrong. At the time that it creates the 6k JSON document (or what previously required 6k) it worked fine with this Free heap: 12368, Max block size=3060, so a definite improvement.

Many thanks.

from arduinojson.

bblanchon avatar bblanchon commented on May 24, 2024

I'm very glad to read that. Thanks!
I think I can safely close this issue then.
Don't hesitate to cast a star to support the project šŸ˜‰

from arduinojson.

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.