[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-bugs-dist
Subject:    [Bug 269352] endless loop in CppClassType::toString with template types e.g. from Eigen
From:       Milian Wolff <mail () milianw ! de>
Date:       2012-03-08 22:37:02
Message-ID: bug-269352-17878-nGuLXNmkdj () http ! bugs ! kde ! org/
[Download RAW message or body]

https://bugs.kde.org/show_bug.cgi?id=269352

--- Comment #16 from Milian Wolff <mail@milianw.de> ---
ok, more information:

this is actually *not* a deadlock, but our code scales very badly (I'll have to
investigate why) with the template recursion depth. If you add debug output of
the depth_counter (DelayedTypeResolver::exchange in templatedeclaration.cpp),
you'll notice that it gets quickly up to say ~15 but then gets slower and
slower, until it reaches (on my machine) about 21 where it takes like a minute
already.

So, as a workaround I consider reducing the allowed template recursion depth to
20. Anyone opposed?

-- 
You are receiving this mail because:
You are watching all bug changes.
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic