Skip to content

[OPTIMIZE] EntitySubscription informEntityChanges #597

@exuvo

Description

@exuvo

In EntitySubscription informEntityChanges and in turn transferBitsToInts is called even when there are no listeners. Seems unnecessary when i use some subscriptions just for getEntities. Or is my use case very uncommon?

In informEntityChanges
if (!extra.listeners.isEmpty()) { transferBitsToInts(extra.inserted, extra.removed); extra.informEntityChanges(); }

Or maybe inserted/remoevIds.clear still need to run? in which case and else is also needed.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions