You can read the following sentences in the conclusion part. @lndj 
Bottom line: **toArray(new T[0]) seems faster, safer, and contractually 
cleaner, and therefore should be the default choice now.** Future VM 
optimizations may close this performance gap for toArray(new T[size]), 
rendering the current "believed to be optimal" usages on par with an actually 
optimal one. Further improvements in toArray APIs would follow the same logic 
as toArray(new T[0]) — the collection itself should create the appropriate 
storage.

[ Full content available at: https://github.com/apache/dubbo/pull/5597 ]
This message was relayed via gitbox.apache.org for 
notifications@dubbo.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscr...@dubbo.apache.org
For additional commands, e-mail: notifications-h...@dubbo.apache.org

Reply via email to