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
In SpdLogService you could save a few arrays and iterations by not declaring var-args but by using the the gold old arguments-objects. In pretty TS we have this trace(message: string, ...args: any[]):void which, thanks to ES5, thanks to IE11, will be downlevel compiled to
Every time one of the log methods is being called (1) a new array is being allocated and (2) the arguments are iterated once. Changing the TypeScript to trace():void will still compile. You would simply pass the arguments object to the format-method. Like so
re #39572
In
SpdLogService
you could save a few arrays and iterations by not declaring var-args but by using the the gold oldarguments
-objects. In pretty TS we have thistrace(message: string, ...args: any[]):void
which, thanks to ES5, thanks to IE11, will be downlevel compiled toEvery time one of the log methods is being called (1) a new array is being allocated and (2) the arguments are iterated once. Changing the TypeScript to
trace():void
will still compile. You would simply pass thearguments
object to the format-method. Like soThe text was updated successfully, but these errors were encountered: