Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library
← Back to context

Comment by LtWorf

4 days ago

Under most circumstances function local variables aren't passed to other threads, or passed at all.

2 comments

LtWorf

Reply

gf000  4 days ago

And? That's a small, optional optimization done by e.g. Swift.

Also, I don't know how it's relevant to Go which uses a tracing GC.

  • LtWorf  4 days ago

    It's not "small" if it accounts for most of the allocations :)

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities