2019年3月8日 星期五

Run UEFI Python on our new BIOS kernel.

I found something strange when I used UEFI Python on our new BIOS kernel.
The loading time of Python and importing time of "requests" module is slow now.

I did some tests for this problem.

OLD BIOS kernel
It is normal in first run -> loading time 1 ~ 2 seconds, importing time 3 ~ 4 seconds.
Other runs -> loading time 6 ~ 7 seconds, import time 13 ~ 14 seconds.
When you run Python directly, you can see the "Prompt message".

NEW BIOS kernel
It is slower in first run -> loading time 3 ~ 5 seconds, importing time 13 ~ 14 seconds.
Other runs -> It is slower than last run, and it will keep increasing in loading time and importing time.
When you run Python directly, you can't see the "Prompt message".

By the way, my building binary bases on UDK2017 and UDK2018. They all have the same problem.

Workaround
You can only use your Python script in first run.


2020/05/22 Update

I don't do anything today. But the problem is gone. This issue maybe came from BIOS or motherboard.

沒有留言:

張貼留言