Giter VIP home page Giter VIP logo

Comments (2)

smartmx avatar smartmx commented on June 15, 2024

TFDB只是一个简单的存储库,因为开发中我会经常性的存储一点点数据,每次都要重新写程序来写入和读取。所以才整理出TFDB,为了以后开发更快。
存储数据多是不建议用的,TFDB特别适合资源紧张的产品,存储不是太多的信息(像IAP跳转标志、APP1/APP2运行标志,断电保存时间参数等)。
因为本身就是为了资源受限产品的,所以当时并没有考虑在RAM区存放缓存。连读写缓存都是由用户提供,TFDB连栈空间都申请的很少(最多大概使用20个字节,包括调用函数的压栈)。我开发中有过检测系统电源异常然后保存信息的需求,先写RAM然后后台再写不能满足。读取写入函数都提供了一个addr_cache的指针选项,可以加速读写的,不会每次上电都去从头开始校验读取和写入。
自动生成工具还得考虑各种单片机flash参数,包括外接的flash等等,有点复杂。更何况=.=我不太会写电脑软件。
资源足够的设备或者存储数据多的需求还是推荐使用easyflash等大型flash存储数据库,TFDB不太合适。

from tfdb.

MRkuan avatar MRkuan commented on June 15, 2024

from tfdb.

Related Issues (4)

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.