ElemeFE / ElemeFE/element

Cascader Node Bottleneck

Open
#19,028 1 comment 0 reactions 0 assignees View on GitHub
stale
Dominant language
Vue
Stars
54k
Forks
14.4k
PR merge metrics
No merged PRs in 30d

Description

If there is checkedValue, then with the number of elements greater than 1x2x100, this causes a delay of more than 1s, in my case ~1x3000 (at 3 levels) causes a delay of more than a minute. It also causes memory allocation ~1.5GB in my case.
And this is done only to check the leaf node, it seems this is not an equal exchange.
![image](https://user-images.githubusercontent.com/16810067/77364627-bc824580-6d65-11ea-8410-a20ab854acb9.png)

https://github.com/ElemeFE/element/blob/6ec5f8e900ff698cf30e9479d692784af836a108/packages/cascader-panel/src/cascader-node.vue#L95

https://github.com/ElemeFE/element/blob/6ec5f8e900ff698cf30e9479d692784af836a108/packages/cascader-panel/src/cascader-node.vue#L37

https://github.com/ElemeFE/element/blob/6ec5f8e900ff698cf30e9479d692784af836a108/src/utils/util.js#L161

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.