ThalesGroup/kessler-game

Optimization: Speed up string concatenation in UE graphics update

Closed this issue · 0 comments

Jie-F commented

Currently there's a string that repeatedly gets appended to. In Python, when strings get appended to, a new string object is created. By appending to a list and converting the list to a string all at the end, this can be sped up by a factor of 5X.