*** This bug has been marked as a duplicate of bug 429 ***
The necessary change would be in tags_type Tags::parse_tags(QString tagstring)
Another approach to optimize this data is simply pointing to the same data instead of reallocating the same chunk. Doing so might improve the memory usage somewhat.