mark2devel / mark2

Minecraft Multi Server Wrapper Written in Python with Twisted; Pull Requests HIGHLY Encouraged, Collaborators Needed Discord: https://discord.gg/zymJygHNpv
Other
205 stars 44 forks source link

Re-arrange imports in launcher code to reduce command execution time #156

Closed Column01 closed 2 years ago

Column01 commented 2 years ago

The problem

At the moment, the launcher code imports a lot of modules before it even parses your command. This causes mark2 to sometimes take ages to execute even the most arbitrary command to execute.

The solution

Localize imports to each command. Only import required modules when you execute that command so that it feels snappy when executing mark2 commands.

Currently this is a low priority, but it's on the roadmap

Column01 commented 2 years ago

This... may be caused by a dying drive on my server box 😂 probably not strictly needed...