Skip to content

Replace linear search in SharedPosition::AddPoint with O(1)#1872

Merged
beachtom merged 7 commits intoThatOpen:mainfrom
Creoox:replace-linear-search-in-AddPoint
Feb 28, 2026
Merged

Replace linear search in SharedPosition::AddPoint with O(1)#1872
beachtom merged 7 commits intoThatOpen:mainfrom
Creoox:replace-linear-search-in-AddPoint

Conversation

@ifcquery
Copy link
Copy Markdown
Contributor

@ifcquery ifcquery commented Feb 27, 2026

The existing linear search for existing points in SharedPosition::AddPoint leads to infinite search time for some models.
The proposed change has O(1) without braking anything

@beachtom beachtom merged commit b90ccd6 into ThatOpen:main Feb 28, 2026
3 checks passed
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.

2 participants