The pathfinding behavior does allocate more memory depending on the size of the layout (and the cell size). This shouldn't affect the performance of finding paths - assuming you calculate the same path with the same obstacles, having a larger layout should not affect anything, since the pathfinding algorithm generally ignores far-away areas.
The core engine itself can use unlimited sized layouts with no overhead.