nsf / pnoise

Perlin noise benchmark
77 stars 23 forks source link

Remove @trusted function attributes #7

Closed JinShil closed 10 years ago

JinShil commented 10 years ago

The @trusted attribute is used for memory safety. It allows the programmer to provide a @safe interface, but use unsafe code in the body. Essentially the programmer is telling the compiler "'trust' me, this function is safe even though I'm using system features."

It is not relevant to the spirit of this benchmark, and appears to have no effect on the performance.