This should not be a problem because you should not be pathfinding every tick and you should not be regenerating the obstacle map every tick. If it needs to be fast, you can regenerate a region of the map which is faster than the whole map or as the manual suggests you can add a short wait if you are trying to find paths immediately after regenerating the obstacle map.