Files
UnrealEngineUWP/Engine/Plugins/Experimental/PythonScriptPlugin/Source
jamie dale 7d4b261557 Pre-cache the available on-disk Unreal Python modules
This can save 1-2s during Python initialization, by removing repeated calls to FileExists for everything on sys.path.

It does limit Unreal Python modules to being stored within the root of a known Content/Python directory, however this limitation is in-line with all existing modules that ship with the Engine, and allows us to avoid the cost of recursively scanning for modules.

#rb Rex.Hill

#ROBOMERGE-SOURCE: CL 15594550 in //UE5/Release-5.0-EarlyAccess/...
#ROBOMERGE-BOT: STARSHIP (Release-5.0-EarlyAccess -> Main) (v777-15581079)

[CL 15594583 by jamie dale in ue5-main branch]
2021-03-03 21:13:48 -04:00
..