Skip to content

Performance improvements#6621

Merged
artf merged 27 commits intodevfrom
performance-improvments
Oct 31, 2025
Merged

Performance improvements#6621
artf merged 27 commits intodevfrom
performance-improvments

Conversation

@mohamedsalem401
Copy link
Contributor

Related to #6618

@mohamedsalem401 mohamedsalem401 marked this pull request as ready for review October 17, 2025 03:30
protected _setupListeners() {
this.em.listenTo(this.all, 'add', this._onItemAdd.bind(this));
this.em.listenTo(this.all, 'remove', this._onItemRemove.bind(this));
this.em.listenTo(this.all, 'reset', this._onItemsReset.bind(this));
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is bind necessary?

I'd also expect this to be the same

this.all.on('add', this._onItemAdd)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, It only works like this. with binding + not with this.all.on

Copy link
Member

@artf artf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💜

@artf artf merged commit c9667e0 into dev Oct 31, 2025
3 checks passed
@artf artf linked an issue Oct 31, 2025 that may be closed by this pull request
2 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BUG: Improve Editor performance and fix any memory leak

2 participants