Skip to content

Replace string.Replace to string.gsub everywhere - #556

Closed
Astralcircle wants to merge 1 commit into
wiremod:masterfrom
Astralcircle:fix
Closed

Astralcircle wants to merge 1 commit into
wiremod:masterfrom
Astralcircle:fix

Conversation

@Astralcircle

Copy link
Copy Markdown
Member

Using string.Replace on big dupes is VERY slow, it even can cause server to hang. So it's better to just use string.gsub

@Astralcircle

Copy link
Copy Markdown
Member Author

Oh, actually it's slower

@Astralcircle
Astralcircle deleted the fix branch October 8, 2026 08:09
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