baidu / baidu/amis

vue中使用amis,内存占用过高,首次进入amis页面中加载慢

Open
#9,533 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
18.9k
Forks
2.7k
PR merge metrics
No merged PRs in 30d

Description

amis版本号是3.6.4,使用方法是用的官方案例中的:https://github.com/aisuda/vue2-amis-demo/tree/main 中的方法
![image](https://github.com/baidu/amis/assets/107377630/c43c1a21-2280-4e14-aeee-26ebdc0490f1)
![image](https://github.com/baidu/amis/assets/107377630/df5d61db-d2eb-4c0f-a3a6-f1055656ea06)
组件直接使用案例中的组件,在项目开发中发现内存的占用特别的高,这个是内存快照
![image](https://github.com/baidu/amis/assets/107377630/4ab544a3-feb6-48d2-8d8c-f9cd70b2f125)
这是两次截图的内存占用
7954e20f75b1a3eb7dba310d3704b624
7946c69ab808bdcb50ca5266ff834304
并且在首次进入amis页面的时候,还会加载卡住个1秒左右,只要页面不刷新,再次跳转amis页面就没有再出现卡住的情况了

Contributor guide

No contributing guide indexed for this repository

Research direction

Start with the vue2-amis-demo linked in the report and reproduce the first navigation to the amis page while recording browser memory snapshots and load timing. Compare the first visit with later visits, then narrow the issue to a reproducible case and verify that the excessive memory use and initial loading delay are resolved.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
frontend, performance
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.