Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
change Package children to be set of PackageableElement instead of ar…
Browse files Browse the repository at this point in the history
…ray for performance
MauricioUyaguari committed Mar 18, 2022
1 parent b138cf1 commit 2ad12bd
Showing 2 changed files with 6 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .changeset/clean-tools-walk.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@finos/legend-graph': patch
---

Change `Package` children to be set of `PackageableElement` instead of array for performance.
Original file line number Diff line number Diff line change
@@ -23,7 +23,6 @@ import {
type Hashable,
hashArray,
assertTrue,
addUniqueEntry,
AssertionError,
} from '@finos/legend-shared';
import {
@@ -58,7 +57,7 @@ export class Package extends PackageableElement implements Hashable {
}

addChild(value: PackageableElement): void {
addUniqueEntry(this.children, value);
this.children.push(value);
}

addElement(element: PackageableElement): void {

0 comments on commit 2ad12bd

Please sign in to comment.