angular-cn/aio/content/examples/universal/src
Shavi Pathania 0fedb57cb0 docs(aio): Clearing array with [] (#20369) (#20395)
Clearing array with setting length to 0 replaced with [] for being short
and marginally efficient. For reference: [] is turned into a sequence of
around 15 machine instructions on x64 (if bump pointer allocation succeeds),
whereas a.length=0 is a C++ runtime function call, which requires 10-100x as
many instructions.
Benedikt Meurer

PR Close #20395
2017-11-16 16:19:35 -06:00
..
app docs(aio): Clearing array with [] (#20369) (#20395) 2017-11-16 16:19:35 -06:00
index.html docs(aio): update universal for CLI 2017-11-01 15:18:43 -07:00
main.server.ts docs(aio): update universal for CLI 2017-11-01 15:18:43 -07:00
main.ts docs(aio): update universal for CLI 2017-11-01 15:18:43 -07:00
tsconfig.server.json docs(aio): update universal for CLI 2017-11-01 15:18:43 -07:00