corrigan.space
  • Communities
  • Create Post
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
bot@lemmy.smeargle.fansMB to Hacker News@lemmy.smeargle.fans · 1 year ago

Identifying Rust's collect:<Vec<_>>() memory leak footgun

blog.polybdenum.com

external-link
message-square
0
link
fedilink
  • cross-posted to:
  • rust@lemmy.ml
2
external-link

Identifying Rust's collect:<Vec<_>>() memory leak footgun

blog.polybdenum.com

bot@lemmy.smeargle.fansMB to Hacker News@lemmy.smeargle.fans · 1 year ago
message-square
0
link
fedilink
  • cross-posted to:
  • rust@lemmy.ml
Identifying Rust’s collect::<Vec>() memory leak footgun
blog.polybdenum.com
external-link
Over the weekend, I was working on a personal Rust project when I ran into an excessive memory usage problem. After an evening of trial and error, I found a workaround to fix the memory usage, but I still didn’t understand how the issue was even possible, so I then spent another evening digging through the source code of the Rust standard library to understand the root cause.

HN Discussion

alert-triangle
You must log in or # to comment.

Hacker News@lemmy.smeargle.fans

hackernews@lemmy.smeargle.fans

Subscribe from Remote Instance

You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !hackernews@lemmy.smeargle.fans
lock
Community locked: only moderators can create posts. You can still comment on posts.

A mirror of Hacker News’ best submissions.

Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 2 users / day
  • 2 users / week
  • 2 users / month
  • 24 users / 6 months
  • 1 local subscriber
  • 2.17K subscribers
  • 16.3K Posts
  • 4.14K Comments
  • Modlog
  • mods:
  • bot@lemmy.smeargle.fans
  • BE: 0.19.12
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org