richie0866 / rbxm-suite

Tool designed for exploiting with a Rojo-based workflow
MIT License
22 stars 3 forks source link

Optimize script loading #3

Closed richie0866 closed 2 years ago

richie0866 commented 3 years ago

Concatenating script sources to a single string and calling loadstring on it may be faster than individual loadstring calls

richie0866 commented 3 years ago

This is a huge optimization, but it ruins debug traceback. I'd like to migrate to this change fully, so this will be on hold until there's a way to change a chunk's source.

Screenshot 2021-07-21 145618

richie0866 commented 3 years ago

If there's no universally supported way to do this, I'll have two differently-named Project objects for development and production.

This way, it's completely optional, and unhelpful errors would only occur after production, not during development.