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

高性能应用的开发 #114

Open
xinglie opened this issue Dec 29, 2023 · 0 comments
Open

高性能应用的开发 #114

xinglie opened this issue Dec 29, 2023 · 0 comments

Comments

@xinglie
Copy link
Owner

xinglie commented Dec 29, 2023

确认平台

任何事情都需要有明确的界线

首先确定应用运行的平台,这个前期一定要确定,不要随便更改。更换就意味着界线变更,而不确定的边界会影响应用的整体方向

其次要清楚平台的特点,要非常清楚。

技术方案

在确定的平台上,选择合适的技术方案

如果现存的方案都无法达到理想的性能指标,则自己造,不要怕麻烦

构架

理清整体应用的模块拆分,哪些是核心模块,哪些是次要模块

各模块间如何协作,如何更替

建议少用第三方的模块(我们的目标是高性能)

编码

对每一行代码追求极致,合适的数据结构可以有效的提升遍历、查找、更新、移除的性能

熟知各种算法,了解语言特性,这些都是平时的积累,非一朝一夕之功

测试

对完成后的应用进行性能测试,找出低效的代码,优化到不能再改善为止

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant