@Rosiak pointed out the load time for his map was high (9k+ ipv4_mac entries). After some debugging this is due to a missing index (mainly mac_address). I've tidied up the current indexes pointing to old column names and re-added the correct index and his query has gone from over 20 seconds to < 1 second.
In my testing with 40000 mac addresses but less ports I went from > 6 seconds to < 0.05 seconds.
I've also fixed duplicate links showing up with this as well.
Network map sql update + fix for duplicate links
Auto-Deploy finished, Test PR at http://1455.ci.librenms.org or https://1455.ci.librenms.org