#42 Optimize away string concatenations

Open
opened 1 month ago by hz · 0 comments
hz commented 1 month ago

Even for a small number of small joins, appending to a list and then doing a string join on the list can be a lot faster than doing repeated string concatenation. Since there are a large number of places in the codebase where we do a whole bunch of repeated string concatenations, one “low hanging fruit” for optimization would be to replace those concatenations.

It would also be good to do some tests to see if this actually makes a difference in terms of speed of, say, a page load.

Even for a small number of small joins, appending to a list and then doing a string join on the list can be a lot faster than doing repeated string concatenation. Since there are a large number of places in the codebase where we do a whole bunch of repeated string concatenations, one "low hanging fruit" for optimization would be to replace those concatenations. It would also be good to do some tests to see if this actually makes a difference in terms of speed of, say, a page load.
hz added the
enhancement
label 1 month ago
hz added the
beginner friendly
label 1 month ago
hz added the
code
label 1 month ago
hz added the
maybe
label 1 month ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
Cancel
Save
There is no content yet.