Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
pault
on July 30, 2019
|
parent
|
context
|
favorite
| on:
What’s New in ES2019
Does shallow copying have the same issues? For example, `let foo = { x: 1, ...bar }` just makes a new object with references to bar's members.
Jasper_
on July 30, 2019
[–]
Shallow copying will create a new object, and thus, some (small) amount of GC garbage. Less than a deep copy, for sure, which means less frequent pauses, but still garbage to clean up nonetheless.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: