How to realize the function of long-distance road finding in large map through navigation

I want to realize long-distance pathfinding in a large map, but there are two problems

  1. The map is too large for navmesh to export

  2. Even if navmesh can be exported, pathfinding is slow