News for hackers. Stuff that matters.
Re:Simple Trie Implementation in C++11 by mehrdadn on Sunday July 21, 2019 @03:53PM (#20493295)
Oh interesting. Why do you think auto would affect run-time performance? Could you describe an example?
Re:Simple Trie Implementation in C++11 by xorz57 on Sunday July 21, 2019 @04:12PM (#20493382)
I think auto won't have any run-time performance since type deduction happens at compile-time.

Also read this https://stackoverflow.com/questions/19618759/c-11-auto-compi...

Re:Simple Trie Implementation in C++11 by mehrdadn on Sunday July 21, 2019 @04:16PM (#20493400)
I'm already well aware of this. I'm asking why the OP thinks otherwise. It's not outright impossible to make it affect performance [1] but I'm trying to see what the concern is.

[1] Like by taking the approach that results in a cast, e.g. here: https://news.ycombinator.com/item?id=20493263

Re:Simple Trie Implementation in C++11 by imedadel on Sunday July 21, 2019 @05:01PM (#20493642)
Oh, I see. I didn't know that type deduction happens at compile-time :o
Re:Simple Trie Implementation in C++11 by saagarjha on Sunday July 21, 2019 @05:09PM (#20493692)
Yeah, that's how type systems work in most languages. That's why we have them: they prevent mistakes before you even run your code :)