Skip to content

Conversation

@TEParsons
Copy link
Contributor

@TEParsons TEParsons commented Aug 17, 2023

Profiling the app (see #5825) revealed that makeValidVarName contributed to some of the slowness on app launch.

The function is still needed for working out the name to give to a microphone/camera/serial device object, but because it also guesses the case of a word and does a slower-but-general conversion, using it to convert e.g. our own attribute names (which we already know are camelCase) meant unnecessary overhead. Replacing it with faster, specific functions should reduce load time.

@peircej peircej merged commit 70aa075 into psychopy:dev Aug 18, 2023
@TEParsons TEParsons deleted the dev-faster-case-conv branch August 31, 2023 16:11
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