以下で早くなった。
1.bluetooth関連サービスの停止。
sudo systemctl stop hciuart.service
sudo systemctl stop bluetooth.service
2.bluetooth関連サービスの自動起動を無効にする。
sudo systemctl disable hciuart.service
3.bluetooth関連サービスの停止。
sudo systemctl stop hciuart.service
sudo systemctl stop bluetooth.service
4.bluetooth関連サービスの自動起動を無効にする。
sudo systemctl disable hciuart.service
- 仮想メモリの SWAP領域を 2GBに広げる
sudo sed -i -e "s/^CONF_SWAPSIZE=.*/CONF_SWAPSIZE=2048/g" /etc/dphys-swapfile```