You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
a small gain in performance for the cost of some code size
And in the next section:
For the Web Browser, it is recommended to use the CODE_SIZE optimization for all messages by setting plugin option --ts_opt optimize_code_size. Then set the file option optimize_for = SPEED for files where you can measure a noticeable performance increase. See code size vs speed for a output size comparison.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The section discussing the tradeoffs between setting
optimize_for
toSPEED
orCODE_SIZE
give some pretty detailed benchmarks showing the difference in bundle size, but there's only an off-hand comment about the difference in speed:And in the next section:
How much faster is
optimize_for = SPEED
?Beta Was this translation helpful? Give feedback.
All reactions