Calc macro slow down after purge

mike@RPI4b3:~> uname -a
Linux MikesPI 6.1.0-rpi7-rpi-v8 #1 SMP PREEMPT Debian 1:6.1.63-1+rpt1 (2023-11-24) aarch64 GNU/Linux
Version: 7.4.7.2 / LibreOffice Community
Build ID: 40(Build:2)
CPU threads: 4; OS: Linux 6.1; UI render: default; VCL: x11
Locale: en-US (C); UI: en-US
Raspbian package version: 4:7.4.7-1+rpi1+deb12u8
Calc: threaded

The spread sheet I’ve been working to speed up for a few weeks finally got down to 8 sec. to run calculations after downloading the day’s quotes.
Then as is often the case I purged packages installed that I don’t use.
One of those, though not listed as required by libreoffice, slowed calc down from 8 to 30 seconds to do the calculations after DLing the day’s quotes.
I’ve purged then reinstalled LibreOffice thinking it might pick up something I’ve missed but no help.
I’ve purged LibreOffice just installing calc which changed nothing even made sure calc’s suggested are installed, again no help.
Short of going back and reinstalling all I purged, which may come, have you any suggestions?
Thanks,
Mike

Without seeing your macro code, it’s difficult to help you.

Looking at what I had purged lately flatpak and gcr looked like likely candidates. While gcr made no improvement, flatpak almost doubled execution speed, reducing calculation time from almost 30 sec. to just over 15 sec.
I’ve a ways to go yet but am making progress.
Be Well,
Mike