RT-Thread / RT-Thread/rt-thread
[Feature] 优化cromfs的内存消耗
Open
Nobody has claimed this yet.
- Dominant language
- C
- Stars
- 12.2k
- Forks
- 5.4k
- Avg merge
- 4d 12h
- Merged PRs (30d)
- 40
Description
Describe problem solved by the proposed feature
typedef struct
{
uint8_t *buff;
} file_info;
这个缓冲区一次分配了整个文件大小的空间,当文件太大时就没法分到可用内存
Describe your preferred solution
No response
Describe possible alternatives
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by locating the cromfs code containing the file_info typedef and its buff allocation. Trace how the buffer is used for files larger than available memory, then define and validate a strategy that avoids allocating the entire file at once while preserving cromfs behavior. The issue names no specific tests or validation commands.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- c
- Domain
- embedded-iot, operating-systems
- Issue type
- Feature
- Difficulty
- 5/5
- Estimated time
- Over a week
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100