Question about Variable Name Length and Storage in UHK Smart Macros

Hi everyone,

I’m new to UHK smart macros and have a quick question about variable naming conventions and storage space.

I’m wondering about the internal storage impact of variable names. For example:

setVar stopJiggler 0 vs. setVar s 0.

Does using a longer variable name (like ‘stopJiggler’) consume more internal storage compared to a shorter name (like ‘s’)? If shorter variable names do save space, I’ll adopt this practice in my future macros.

Would appreciate any insights from experienced UHK users.

Thanks!

Macros are stored in plain text in the serialized UserConfiguration, so yes, they use more of the user configuration space.

(However, they don’t consume additional RAM - they are treated as string references intocthe config buffer.)

2 Likes

Thanks for the clarification.