Which is faster: Cloning or using Streams?

Posted by Nathan Sabruka on Stack Overflow See other posts from Stack Overflow or by Nathan Sabruka
Published on 2010-06-02T14:52:14Z Indexed on 2010/06/02 15:14 UTC
Read the original article Hit count: 273

Filed under:
|
|
|

In Java, which is faster:

  • Cloning an Object, then passing it to multiple listeners assuming the cloned object contains nothing more complicated than nested arrays, primitives and Strings
  • Using Streams to pass data through from one object to another?

© Stack Overflow or respective owner

Related posts about java

Related posts about Performance