senooken JP Social
  • FAQ
  • Login
senooken JP Socialはsenookenの専用分散SNSです。
  • Public

    • Public
    • Network
    • Groups
    • Popular
    • People

Conversation

Notices

  1. Masaki Hara (qnighy@qnmd.info)'s status on Thursday, 04-Oct-2018 20:17:24 JST Masaki Hara Masaki Hara

    https://users.rust-lang.org/t/announcing-smallbox-crate-on-stable-faster-heap-allocation-than-box/20951
    小さいときはスタック、大きいときはヒープに保存するためのsmallboxクレートが安定版コンパイラで使えるようになったらしい。

    In conversation Thursday, 04-Oct-2018 20:17:24 JST from qnmd.info permalink

    Attachments

    1. Domain not in remote thumbnail source whitelist: www.rust-lang.org
      Announcing `smallbox` crate on stable! Faster heap allocation than `Box`!
      from The Rust Programming Language Forum
      Annoncing smallbox 0.7 https://crates.io/crates/smallbox smallbox crate implements small box optimization that stores small item on the stack and fallback to heap as normal box for large item. And since 0.7, smallbox is available on stable rust (1.28.0+). Example use smallbox::SmallBox; use smallbox::space::S4; let small: SmallBox<_, S4> = SmallBox::new([0; 2]); let large: SmallBox<_, S4> = SmallBox::new([0; 32]); assert_eq!(small.len(), 2); assert_eq!(large.len(), 32); assert_eq!(*small, [...
    • Satoshi Kojima repeated this.

Feeds

  • Activity Streams
  • RSS 2.0
  • Atom
  • Help
  • About
  • FAQ
  • TOS
  • Privacy
  • Source
  • Version
  • Contact

senooken JP Social is a social network, courtesy of senooken. It runs on GNU social, version 2.0.2-beta0, available under the GNU Affero General Public License.

Creative Commons Attribution 3.0 All senooken JP Social content and data are available under the Creative Commons Attribution 3.0 license.