Skip to content

String concat speed #40

@rjacoby

Description

@rjacoby

In the Strings section the standard is:

"Strings longer than 80 characters should be written across multiple lines using string concatenation."

I understand the clarity of code - but the performance is 80-100% worse. jsPerf

The need for such long strings is debatable anyway, but isn't this kind of a steep performance penalty for code style?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions