Binding nodes to a coordinate grid #9

Open
opened 2025-01-09 09:57:51 +07:00 by Arsen Mirzaev Tatyano-Muradovich · 0 comments

In releases 1.0.0 and 2.0.0, node interactions are processed for each node at once with all registered nodes.

In this case, if we have 1 000 000 nodes, then when processing each of them, a cyclic enumeration of all 1 000 000 nodes will be launched! This is a very expensive operation!

We need to bind nodes to a coordinate grid in order to form a list for interactions only for those nodes that are either in its cell or in neighboring ones
image

In releases 1.0.0 and 2.0.0, node interactions are processed for each node at once with all registered nodes. In this case, if we have 1 000 000 nodes, then when processing each of them, a cyclic enumeration of all 1 000 000 nodes will be launched! This is a very expensive operation! We need to bind nodes to a coordinate grid in order to form a list for interactions only for those nodes that are either in its cell or in neighboring ones ![image](/attachments/4874c3e9-bb3c-41e3-98e9-cbfb3b01e782)
Arsen Mirzaev Tatyano-Muradovich added this to the RELEASE v3.0.0 project 2025-01-09 09:57:51 +07:00
Sign in to join this conversation.
No Label
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: mirzaev/graph.mjs#9
No description provided.