Skip to content

Commit

Permalink
FixedSizeQueue: Work around GCC generating large amounts of debug info
Browse files Browse the repository at this point in the history
  • Loading branch information
stenzek committed Oct 6, 2019
1 parent 3c6c94a commit 4fd262d
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion Source/Core/Common/FixedSizeQueue.h
Expand Up @@ -21,7 +21,13 @@ class FixedSizeQueue
void clear()
{
if constexpr (!std::is_trivial_v<T>)
storage = {};
{
// The clear of non-trivial objects previously used "storage = {}". However, this causes GCC
// to take a very long time to compile the file/function, as well as generating huge amounts
// of debug information (~2GB object file, ~600MB of debug info).
while (count > 0)
pop();
}

head = 0;
tail = 0;
Expand Down

0 comments on commit 4fd262d

Please sign in to comment.