Comments (2)
TFDB只是一个简单的存储库,因为开发中我会经常性的存储一点点数据,每次都要重新写程序来写入和读取。所以才整理出TFDB,为了以后开发更快。
存储数据多是不建议用的,TFDB特别适合资源紧张的产品,存储不是太多的信息(像IAP跳转标志、APP1/APP2运行标志,断电保存时间参数等)。
因为本身就是为了资源受限产品的,所以当时并没有考虑在RAM区存放缓存。连读写缓存都是由用户提供,TFDB连栈空间都申请的很少(最多大概使用20个字节,包括调用函数的压栈)。我开发中有过检测系统电源异常然后保存信息的需求,先写RAM然后后台再写不能满足。读取写入函数都提供了一个addr_cache的指针选项,可以加速读写的,不会每次上电都去从头开始校验读取和写入。
自动生成工具还得考虑各种单片机flash参数,包括外接的flash等等,有点复杂。更何况=.=我不太会写电脑软件。
资源足够的设备或者存储数据多的需求还是推荐使用easyflash等大型flash存储数据库,TFDB不太合适。
from tfdb.
from tfdb.
Related Issues (4)
- bug HOT 3
- 关于块管理的一些问题 HOT 33
- 关于无法逆序写入的stm32L4系列问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tfdb.