searchpartyd and searchpartyagent are two parts of the Find My system that helps locate Apple devices that don’t have actual GPS or network connection.
The CPU use is understandable because it is looking through all the Bluetooth traffic your computer can see, finding the ones that are Apple Find My messages, and sending those off to Apple (and if it so happens that someone is looking for a device that happens to be in range of your computer, Apple will also send back the signal to “make a sound” or whatever which your computer will then pass on to the missing device). So the only real way to stop the CPU use is to turn off bluetooth so it doesn’t see that traffic, and those processes will have nothing to process.
I plugged my trackpad into my computer and turned off bluetooth and the CPU use went to zero as expected. I realize this may not be the solution for everyone (I use wired headphones on my desktop too!), so I tried a few others. With mixed results.
Killing the searchpartyd process from the Terminal a couple of times. In my tests, the CPU use tends to spike again after killing it once, but drops to what I would consider normal levels (0.2% CPU) after killing it a second time.
Since both searchpartyd and searchpartyagent are run by the system, you’ll have to use sudo to kill it. E.g.:
## to get the process IDs
ps -ax|grep searchparty
## kill command with process ID should work, you can add "-9" if you want to simulate pulling the power plug
sudo kill ### (process #)
I just realized I didn’t toggle Bluetooth. I was so happy turning it off worked I just never turned it back on, so perhaps that’s a solution too. Best of luck.