concurrent-map
concurrent-map copied to clipboard
add a clone() and append()?
hello,as the title ,can you add a clone func to deep copy a cmap to a new one? and for the values like string,add a function maybe named append to append new string to the old ones stored before,because if the string stored in cmap is large,i get it and cancat with another large string will cost a lot of memory
@Nyx2022
For my personal opinion :
- Deep copy cmap cause another "Lock Competition" and it's purpose is opposite. Understanding cmap concept and you will know it.
- You can manually do string append or define a custom function. I don't think this action must be add to "library side". And it is not difficult or complex.
At last, thanks for you suggestion. Hope it can help