Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add a clone() and append()? #108

Open
Nyx2022 opened this issue Jan 21, 2022 · 1 comment
Open

add a clone() and append()? #108

Nyx2022 opened this issue Jan 21, 2022 · 1 comment

Comments

@Nyx2022
Copy link

Nyx2022 commented Jan 21, 2022

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 Nyx2022 changed the title add a clone()? add a clone() and append()? Feb 8, 2022
@khndhkx123
Copy link

khndhkx123 commented Aug 24, 2022

@Nyx2022

For my personal opinion :

  1. Deep copy cmap cause another "Lock Competition" and it's purpose is opposite. Understanding cmap concept and you will know it.
  2. 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants