[Issue 4763] Few possible changes on std.stdio.File

via Digitalmars-d-bugs digitalmars-d-bugs at puremagic.com
Sat Feb 27 12:58:57 PST 2016


https://issues.dlang.org/show_bug.cgi?id=4763

--- Comment #7 from Andre <d.developer.andre at gmail.com> ---
I did a code review, made some rough changes and tested it successfully.

Conclusion: it's possible to implement a more efficient open() that re-uses the
File struct state, avoiding the destructor/free + constructor/malloc pattern.

I have to admit that the current implementation is shorter, easier to read.

How much do we really need a more efficient File.open method? In what
situations will this be beneficial?

--


More information about the Digitalmars-d-bugs mailing list