mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-10 07:12:54 +02:00
FixedSizeQueue: Work around GCC generating large amounts of debug info
This commit is contained in:
@ -21,7 +21,13 @@ public:
|
|||||||
void clear()
|
void clear()
|
||||||
{
|
{
|
||||||
if constexpr (!std::is_trivial_v<T>)
|
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;
|
head = 0;
|
||||||
tail = 0;
|
tail = 0;
|
||||||
|
Reference in New Issue
Block a user