Skip to content

Fix #123 performance bottlenecks#125

Merged
adragnevVW merged 10 commits intomasterfrom
Fix-#123-Performance-Bottlenecks
Apr 14, 2026
Merged

Fix #123 performance bottlenecks#125
adragnevVW merged 10 commits intomasterfrom
Fix-#123-Performance-Bottlenecks

Conversation

@adragnevVW
Copy link
Copy Markdown
Collaborator

@adragnevVW adragnevVW commented Oct 30, 2025

Fix for #123:

Changes:
Improving GetSymDefAt() and GetSymDefCount()
Adding a check if the symbol contains other symbol as a child.

Comment thread src/Include/IMediaRessourceVectorInterface.h
@adragnevVW
Copy link
Copy Markdown
Collaborator Author

Hi @AndriiVoitenko,
Do you think this change must be submitted?

@adragnevVW adragnevVW requested review from AndriiVoitenko and removed request for AndriiVoitenko November 25, 2025 09:13
@adragnevVW
Copy link
Copy Markdown
Collaborator Author

Hi @AndriiVoitenko ,
Do you think we can submit this change?

@AndriiVoitenko
Copy link
Copy Markdown
Collaborator

@adragnevVW I’m not quite sure I understand the purpose of this optimization. The problem is that several different object types are combined into one fAuxDataObjs. That means that each API returning a specific object type at a given position have to search through the shared list. If I understand correctly, you created a parallel list fSymDefObjs that contains only SymDef objects to avoid searching by index.

But what about the other object types? Why didn’t you create separate lists for them as well? With this changes you optimize only API for SymDef. And why you leave them in a general list? If SymDef objects already have they own dedicated list, why do we need the shared one?

Comment thread src/Implementation/CMediaRessourceVectorImpl.cpp
Comment thread src/SceneDataExchange.cpp
Copy link
Copy Markdown
Contributor

@ILane-VW ILane-VW left a comment

Choose a reason for hiding this comment

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

see changes from Andrii

Comment thread src/SceneDataExchange.cpp
Comment thread src/SceneDataExchange.cpp
@adragnevVW
Copy link
Copy Markdown
Collaborator Author

Hi @AndriiVoitenko ,
Thanks for the suggestions!

Comment thread src/SceneDataExchange.h Outdated
Comment thread src/SceneDataExchange.cpp Outdated
Copy link
Copy Markdown
Collaborator

@AndriiVoitenko AndriiVoitenko left a comment

Choose a reason for hiding this comment

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

check comments

@adragnevVW adragnevVW merged commit 84cb3bd into master Apr 14, 2026
1 check passed
@adragnevVW adragnevVW deleted the Fix-#123-Performance-Bottlenecks branch April 14, 2026 14:59
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.

3 participants