Skip to content

What the benifit from changing "TEXT" to "TEXTVIEW"? #252

Answered by Sixze
ameaninglessname asked this question in Q&A
Discussion options

You must be logged in to vote

TEXTVIEW() calculates the length of a string from a string literal at compile time, so constructing FName and FString from it should be slightly faster because there is no need to calculate the length of the string at runtime.

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@ameaninglessname
Comment options

Answer selected by ameaninglessname
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants