DEV Community

Discussion on: Performance Benchmarking: String and String Builder

Collapse
 
kaleemniz profile image
Kaleem

Rightly, modifying the String class creates a new String instance in the heap memory, which makes the execution of String append slow.