mirror of
https://github.com/yewprint/yewprint
synced 2024-11-25 04:50:20 +00:00
Tree: increase to 500**2 to test performance
This commit is contained in:
parent
eafd9bc339
commit
de2b121443
1 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@ impl Component for App {
|
||||||
InsertBehavior::UnderNode(&root_id),
|
InsertBehavior::UnderNode(&root_id),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
for i in 0..100 {
|
for i in 0..500 {
|
||||||
let dir2 = tree
|
let dir2 = tree
|
||||||
.insert(
|
.insert(
|
||||||
Node::new(NodeData {
|
Node::new(NodeData {
|
||||||
|
@ -69,7 +69,7 @@ impl Component for App {
|
||||||
InsertBehavior::UnderNode(&dir1),
|
InsertBehavior::UnderNode(&dir1),
|
||||||
)
|
)
|
||||||
.unwrap();
|
.unwrap();
|
||||||
for i in 0..100 {
|
for i in 0..500 {
|
||||||
tree.insert(
|
tree.insert(
|
||||||
Node::new(NodeData {
|
Node::new(NodeData {
|
||||||
icon: Some(IconName::Document),
|
icon: Some(IconName::Document),
|
||||||
|
|
Loading…
Reference in a new issue