Class names are interned (see <a href="https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;String_interning" rel="nofollow">https:&#x2F;&#x2F;en.wikipedia.org&#x2F;wiki&#x2F;String_interning</a>), so string length does not affect rendering performance.