|
|
Subscribe / Log in / New account

The perils of pinning

The perils of pinning

Posted Sep 19, 2022 14:10 UTC (Mon) by Wol (subscriber, #4433)
In reply to: The perils of pinning by developer122
Parent article: The perils of pinning

And if it's actually doing a copy, then it's also a speed-damaging language misfeature.

It might not be much, but papercuts add up.

Dunno how they'll fix it but it needs fixing ...

Cheers,
Wol


to post comments

The perils of pinning

Posted Sep 21, 2022 1:25 UTC (Wed) by D1plo1d (guest, #161018) [Link]

There's currently some discussion of how to fix this in the Rust language itself both in an older Placement-by-Return RFC and this blog post update from 2 days ago:

https://y86-dev.github.io/blog/return-value-optimization/placement-by-return.html

For what it's worth as a Rust user, these Rust for Linux issues seem to be becoming a very helpful forcing function to improve Rust itself.


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds