Skip to content

Commit

Permalink
Reduce plugin init time as append in DCG causes up to 1% of compilati…
Browse files Browse the repository at this point in the history
…on time

Summary:
DCG plugin loader init take up to 1% of compilation mainly due to unoptimized appendln (calls to property + toString)

This diff simplifies a call without loosing message context

Differential Revision: D63536703

fbshipit-source-id: 818ca64432281627a3e7fe9e63a182720d01acf8
  • Loading branch information
rybalkinsd authored and facebook-github-bot committed Sep 27, 2024
1 parent 22c340d commit 454f2a1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ object CompilerConfigurationProperties {
CliOption(
"mode",
PluginMode.values().joinToString(prefix = "<", postfix = ">", separator = " | "),
"defines plugin mode, check ${PluginMode::name}",
"defines plugin mode, check PluginMode.kt enum for more details}",
required = false),
CompilerConfigurationKey("mode"),
PluginMode.EXPLICIT)
Expand Down

0 comments on commit 454f2a1

Please sign in to comment.