garrysmod icon indicating copy to clipboard operation
garrysmod copied to clipboard

Optimize some points

Open JarosLucky opened this issue 5 years ago • 3 comments

  • Removed some unnecessary local variables before loops.
  • Replaced pairs with ipairs for places where the order table is not broken down.
  • Localized some vectors so as not to create them different for each operation.
  • Faster function variations are used to combine strings.
  • A more effective solution to calculate the end position for the beam for the Widgets.
  • A more effective way to indicate which panels in DTree are the last ones.
  • Faster "MakeNiceName" function in the Player Editor.

JarosLucky avatar Sep 15 '19 14:09 JarosLucky

This PR

JarosLucky avatar Sep 15 '19 15:09 JarosLucky

Mostly a duplicate of https://github.com/Facepunch/garrysmod/pull/1573, though this PR is more expansive.

Kefta avatar Sep 16 '19 19:09 Kefta

Yes right, just i don't see this pr

JarosLucky avatar Sep 17 '19 04:09 JarosLucky