strings: Java Strings deep dive companion code (pool/intern, indy concat vs StringBuilder JMH, text blocks, string templates)
Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01KqJyCidz3ZgRyHABv2GVJh
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
iteration 0: length=1 value=0
|
||||
iteration 1: length=2 value=01
|
||||
iteration 2: length=3 value=012
|
||||
iteration 3: length=4 value=0123
|
||||
iteration 4: length=5 value=01234
|
||||
characters copied in total across the loop results: 15
|
||||
n=20000: final length=20000, characters in all intermediate strings=200010000
|
||||
Reference in New Issue
Block a user