]> git.lizzy.rs Git - dragonfireclient.git/commit
Optimize string handling in path search (#8098)
authorJozef Behran <jozuejozef@gmail.com>
Thu, 7 Mar 2019 07:20:33 +0000 (02:20 -0500)
committerLoïc Blot <nerzhul@users.noreply.github.com>
Thu, 7 Mar 2019 07:20:33 +0000 (08:20 +0100)
commitbb35d062255ed74f6e1ebe0f7c4714054803b248
tree5bb33f4cdfb68f5854df2398da5f55dbf0ecb7a0
parent007c8440d7da324af05631389f9a850e805fb3b3
Optimize string handling in path search (#8098)

Use "append" method to construct the various game paths
instead of wasteful string concatenation. Additionally, use a
temporary to extract and reuse a result of a few common
subexpressions to further reduce the overhead.
src/content/subgames.cpp