Skip to content

Refactor: avoid changing the execution context of the JuncLocate function twice - #4

Open
Emmankoko wants to merge 1 commit into
HoyLab-Rowan:mainfrom
Emmankoko:JuncLoc
Open

Refactor: avoid changing the execution context of the JuncLocate function twice#4
Emmankoko wants to merge 1 commit into
HoyLab-Rowan:mainfrom
Emmankoko:JuncLoc

Conversation

@Emmankoko

@Emmankoko Emmankoko commented Aug 29, 2026

Copy link
Copy Markdown

GetAtomSym is an external function and if the first Sulphur atom is detected,
the detection of the next sulphur atom in the junction between the electrodes will run GetAtomSym
twice. this leads to a change in execution context since the compiler doesn't
see it at compiler time(even if it is -o2 optimized). This is a "little" win for performance even though the GetAtomSym
is not expensive.

@EPHoy-QC

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.

1 participant