Skip to content
This repository was archived by the owner on Sep 5, 2024. It is now read-only.
This repository was archived by the owner on Sep 5, 2024. It is now read-only.

(perf)md-tooltip uses angular watcher per item #4033

@clshortfuse

Description

@clshortfuse

This isn't a major issue at all, but md-tooltip is using 1 (or maybe 2) watchers per tooltip. While many won't see this as major, I'm currently using a large table that's completely structured to be bind once.

If, for example, I have 200 rows, and each row has a md-tooltip, it would be 200/400 watchers which are called on each digest. It has terrible performance. I am aware of the ability to use virtual-repeat, but for UX reasons, I cannot use it. I have opted to remove the md-tooltip for this reason. It seems a better performance fix would be to use DOM's hover/mouse-over/mouse-enter and then use an $apply when necessary instead of having each tooltip being watched on every digest.

I can construct a codepen to show the performance issues.

Metadata

Metadata

Assignees

No one assigned

    Labels

    needs: more infoThe issue does not contain enough information for the team to determine if it is a real bugtype: performanceThis issue is related to performance

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions