Apparently in Python, doc-strings do slow down programs, at least that's what I've been reading in other questions... but what about GDScript? Should I just use # instead?
\$\begingroup\$
\$\endgroup\$
2
-
1\$\begingroup\$ This looks like a question you could answer empirically by profiling the same script with docstrings and again with the docstrings removed. Do you measure any significant performance difference between the two cases when you try that? \$\endgroup\$DMGregory– DMGregory ♦2024-06-27 10:36:29 +00:00Commented Jun 27, 2024 at 10:36
-
\$\begingroup\$ @DMGregory well ofcourse I'd have to add hundreds of lines of doc sring to every single script to even see it budge a notch in performance, I just began wirintg the docs for my game now... less than 100 lines in \$\endgroup\$Reincarnated as a worldbuilder– Reincarnated as a worldbuilder2024-06-27 14:03:06 +00:00Commented Jun 27, 2024 at 14:03
Add a comment
|
