forked from Monkestation/Monkestation2.0
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port some 515 optimizations from /tg/ (Monkestation#1361)
* Removes overly optimistic warn on byond version (#81185) I assumed this would be fixed because I assumed it was a bug. My report goes unresponded to. * Make list clear nulls faster (#80869) The old version makes a new list of n null values, and removes it from the given list. for larger lists, this newer 515 version should be faster and lead to less list churn. ![image](https://github.com/tgstation/tgstation/assets/7069733/9c23cc8b-06c4-4a54-99b4-2c44608cf434) * Makes build tool use 515 -D argument instead of m.dme file (#80494) Now that we require 515 to build, we can simplify the build process a bit. Leaves TGS define part in until TGS gets that functionality * Remove old 515 fcopy hack (#79952) This was a workaround for a issue that's now fixed on 1609 (the new MIN_COMPILER_BUILD) https://www.byond.com/forum/post/2872856 > Status: Resolved (515.1609) * Micros bucketJoin with operator"" (#79949) ## About The Pull Request We make timers a lot. Making a unique string for each of them wastes time (string churn). It also means we have to do an extra ref() in the bucketJoin proc. If we instead throw all the shit we care about in a list and just read off it later, we get pretty decent savings ((0.013 | 0.022) -> (0.009, 0.012)) (It was way worse when ref() was hyper expensive) It's not much, but since timers are hot I think it's worthwhile. It also lets us add further debug information, if we want it. Could optimize this further if we had less stuff in the list, depends on what we want displayed as it was on insertion and what we want displayed as it was at moment of print. Also also this is 100% the reason I did 515 in the first place and I need to be free ## Why It's Good For The Game Uhhhhhhhh more flexability in timer readouts? Cost I was worried about is mostly gone cause ref() got better I think --------- Co-authored-by: LemonInTheDark <[email protected]> Co-authored-by: Kyle Spier-Swenson <[email protected]> Co-authored-by: AnturK <[email protected]> Co-authored-by: vvvv-vvvv <[email protected]>
- Loading branch information
1 parent
b03e868
commit 87f6d5c
Showing
6 changed files
with
52 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters