Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

一些意见和建议 #9

Open
GongT opened this issue May 27, 2021 · 0 comments
Open

一些意见和建议 #9

GongT opened this issue May 27, 2021 · 0 comments

Comments

@GongT
Copy link

GongT commented May 27, 2021

1

ENV_AREA_SIZE没有办法设置,现在我直接改了ef_cfg.h,但这样太不稳定了。(包是用pkgs下载的)

2

还有配置方面的一些问题,比如现在很多配置的检查是用这样的方式实现的:

#if EF_ENV_CACHE_TABLE_SIZE > 0xFFFF
#error "The ENV cache table size must less than 0xFFFF"
#endif

而另一些是assert,实际上都可以用assert,这样有机会把它们定义成某种在应用早期计算的全局变量,可以更灵活。

3

ef_env_init()中的EF_ASSERT(ENV_AREA_SIZE % EF_ERASE_MIN_SIZE == 0);没有什么必要,我需要专门算ENV_AREA_SIZE ,但其实并不会导致什么问题,只是最后有一些空间浪费了而已。

@GongT GongT changed the title ENV_AREA_SIZE 没有办法设置 一些意见和建议 May 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant