You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Recently I found a problem when I use your code, but I'm not sure whether it's a bug or just the design, so I submit this issue.
I have a long-term task. A YAML::Node is constructed at the beginning of the task. This Node will not be destructed during the task. During the task, the progress will be recorded at regular intervals (that is, the Node will have the same key but value different assignments) and synchronize it to the file. At the end of the task, I found that the YAML::Node constructed at the beginning was destructed very slowly.
Through debugging and looking through the source code, I found that even if the same key is assigned, the internal memory object will continue to create and merge new nodes. This led me to find that nearly 100,000 nodes were created internally at the end of the task. The m_pNode object of YAML::Node is normal, but the number of child nodes in the m_pMemory object is abnormal. I am not sure whether it is designed like this or something. Looking forward for ur reply. Have a nice day.
The text was updated successfully, but these errors were encountered:
Recently I found a problem when I use your code, but I'm not sure whether it's a bug or just the design, so I submit this issue.
I have a long-term task. A YAML::Node is constructed at the beginning of the task. This Node will not be destructed during the task. During the task, the progress will be recorded at regular intervals (that is, the Node will have the same key but value different assignments) and synchronize it to the file. At the end of the task, I found that the YAML::Node constructed at the beginning was destructed very slowly.
Through debugging and looking through the source code, I found that even if the same key is assigned, the internal memory object will continue to create and merge new nodes. This led me to find that nearly 100,000 nodes were created internally at the end of the task. The m_pNode object of YAML::Node is normal, but the number of child nodes in the m_pMemory object is abnormal. I am not sure whether it is designed like this or something. Looking forward for ur reply. Have a nice day.
The text was updated successfully, but these errors were encountered: