Goonstation Forums
Tiny optimization re: /obj/machinery/power/data_terminal/proc/is_valid_master - Printable Version

+- Goonstation Forums (https://forum.ss13.co)
+-- Forum: Discussion (https://forum.ss13.co/forumdisplay.php?fid=6)
+--- Forum: Patches (https://forum.ss13.co/forumdisplay.php?fid=30)
+---- Forum: Implemented (https://forum.ss13.co/forumdisplay.php?fid=31)
+---- Thread: Tiny optimization re: /obj/machinery/power/data_terminal/proc/is_valid_master (/showthread.php?tid=13883)



Tiny optimization re: /obj/machinery/power/data_terminal/proc/is_valid_master - Naksu - 02-17-2020

This proc gets millions of calls, has no overrides and is simple enough to effectively be almost 100% proc call overhead in the profiles. In this branch I've replaced it with a #define macro.

https://github.com/goonstation/goonstation-2020/compare/master...vuonojenmustaturska:its-a-start?expand=1


RE: Tiny optimization re: /obj/machinery/power/data_terminal/proc/is_valid_master - pali6 - 02-17-2020

Merged.