Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[pegasus] Remove unnecessary AnyRecord allocation in CollectionRespon…
…seBuilder CollectionResponseBuilder.buildRestLiResponseData method wraps a DataMap object into a new AnyRecord object, but that AnyRecord object is never used despite of redirecting the wrapped DataMap object to a paging metadata. This adds about 2% allocation pressure based on profile, and could be avoided by passing the DataMap object to paging metadata directly. Note this allocation could be optimized via escape analysis if the method becomes hot and gets compiled by C2, but this fix will still remove extra computation (i.e. object initialization). RB=887380 G=si-dev R=kbalasub,sihde,mnchen,dhoa,xma,kvidhani,ssheng A=kbalasub
- Loading branch information