Is std.perf still useful?

Jonathan M Davis jmdavisProg at gmx.com
Tue May 24 22:37:07 PDT 2011


On 2011-05-24 22:15, Andrej Mitrovic wrote:
> It seems to be largely replaced by std.datetime.stopwatch and friends,
> right? Although I'm not sure IF those thread-specific timers are
> available in datetime.
> 
> If it's not going to be deprecated let's at least make its
> documentation linked from somewhere. This is a 2 year old bug:
> http://d.puremagic.com/issues/show_bug.cgi?id=3145

If you'll notice, it has this pragma in it:

pragma(msg, "std.perf has been scheduled for deprecation. "
            "Please use std.datetime instead.");

It's going away. If it core.time and std.datetime are missing functionality 
that it provides that you think should be provided in Phobos, then create an 
enhancement request. But std.perf has been marked as scheduled for deprecation 
for a number of months now. And the fact that it wasn't listed in the online 
docs before is likely an indicator that it wasn't considered ready yet. 
Modules have been added to Phobos before without being added to the 
documentation when they weren't really ready yet. I don't know what the state 
of std.perf is though, other than the fact that it has been scheduled for 
deprecation.

- Jonathan M Davis


More information about the Digitalmars-d mailing list