Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-3623

[perf] avoid use HashSet for check empty html elements in HtmlResponseWriterImpl

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0.16, 2.1.10
    • Component/s: JSR-314
    • Labels:
      None

      Description

      I have seen this trick from Trinidad long time ago. I tested it and it is worth to do it, because you can skip some unnecessary String instances created by toLowerCase(), and instead use equalsIgnoreCase(). From memory perspective it is good and form speed perspective it suppose an small improvement.

        Attachments

          Activity

            People

            • Assignee:
              lu4242 Leonardo Uribe
              Reporter:
              lu4242 Leonardo Uribe
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: