Skip to content

Conversation

knutwannheden
Copy link
Contributor

The StringFormatted recipe appears to have very bad performance. This one is actually quite easy to implement "manually" without the convenience of JavaTemplate, as it basically only shuffles the arguments around.

The `StringFormatted` recipe appears to have very bad performance. This one is actually quite easy to implement "manually" without the convenience of `JavaTemplate`, as it basically only shuffles the arguments around.
@knutwannheden knutwannheden self-assigned this Mar 25, 2023
@knutwannheden
Copy link
Contributor Author

@sambsnyd @timtebeek Maybe you can also check and see if you agree this recipe has bad performance. Also, it remains to be seen if this fix actually helps (possibly it is the maybeAutoFormat() which is the baddy).

@timtebeek
Copy link
Member

Seems reasonable to me; thanks for taking the time to revise this one. Can't say much as to the performance aspect; I very much agree with you that it's a likely improvement. Suggest we merge this as it is, and look at the daily recipe runs if the data tables show any change in performance there.

@knutwannheden knutwannheden merged commit 97a3cb7 into main Mar 25, 2023
@knutwannheden knutwannheden deleted the optimize-stringformatted branch March 25, 2023 19:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

2 participants