It is essential to provide Google with a constantly updated sitemap, especially for large sites. If the sitemap generation takes a long time you can divide it into several pages, containing a limited number of links, and update only the section that includes newest and updated contents.