[Issue 16513] Speed up TemplateInstance.findExistingInstance, hash by mangling

2016-10-11 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16513 ZombineDev changed: What|Removed |Added CC||petar.p.ki...@gmail.com --

[Issue 16513] Speed up TemplateInstance.findExistingInstance, hash by mangling

2016-09-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16513 --- Comment #4 from Martin Nowak --- (In reply to uplink.coder from comment #2) > Hash collisions will happen! > We need a way to speed up those equals compares in rootObject. > I'll look if I can find a good way to gradually remove the virtual calls

[Issue 16513] Speed up TemplateInstance.findExistingInstance, hash by mangling

2016-09-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16513 --- Comment #3 from Martin Nowak --- Managed to speed up the test case from 1.8s to 1.2s, almost completely eliminating the lookup cost. Still need to fix a few issues, the cppmangler thinks member variables are static, we might not want to fill the

[Issue 16513] Speed up TemplateInstance.findExistingInstance, hash by mangling

2016-09-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16513 --- Comment #2 from uplink.co...@googlemail.com --- Hash collisions will happen! We need a way to speed up those equals compares in rootObject. I'll look if I can find a good way to gradually remove the virtual calls. IsVariable!(Simulated_Object_

[Issue 16513] Speed up TemplateInstance.findExistingInstance, hash by mangling

2016-09-20 Thread via Digitalmars-d-bugs
https://issues.dlang.org/show_bug.cgi?id=16513 Martin Nowak changed: What|Removed |Added CC||goober...@gmail.com, |