Uploaded image for project: 'Code Tools'
  1. Code Tools
  2. CODETOOLS-7903637

Use holder classes for string constants

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • None
    • None
    • tools
    • None

      Currently we generate string constants as simple fields in the header file class we generate.

      Each string constant initializer currently creates a new automatic arena, and allocates memory from it, then the string is copied into it.

      We can share a single automatic arena between all string constants (and perhaps other things in the future as well), and we can use the holder class idiom for string constants so that we avoid an eager allocation & copy.

            jvernee Jorn Vernee
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: