on-internet
← Community

Clang C++ new operator large dynamic array slow compile time

Stack Overflow ·

I am facing a very unusual issue using clang-1200.0.32.21 on Mac OS Catalina 10.15.7. Essentially, this code takes a long time to compile, and has extremely high RAM usage (peeks around 10GB of RAM): m_Table = new MapGenerator::Block[MAP_DIAMETER * MAP_HEIGHT * MAP_DIAMETER](); ===-------------------------------------------------------------------------=== Clang front-end time report ===-------------------------------------------------------------------------=== Total Execution Time: 50.8973 seconds (55.3352 wall clock) ---User Time--- --System Time-- --User+System-- ---Wall Time--- --- Name -

Comments

Sign in or sign up to comment and upvote.

No comments yet.