Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

optimize codec-registration-serializer-check phase #155

Merged
merged 2 commits into from
May 24, 2022

Conversation

LukaszKontowski
Copy link
Contributor

Two snippets attached - "old" shows compilation statistics before refactor and "new" - after refactor (on Hydra).
old_stats_hydra_compilation
new_hydra_compilation_stats

@LukaszKontowski
Copy link
Contributor Author

Tried compiling few more times - each time codec-registration-serializer-check took less than 4% of total compilation time

@@ -44,8 +47,6 @@ class SerializerCheckCompilerPluginComponent(
val buffer = ByteBuffer.allocate(channel.size().toInt)
channel.read(buffer)
val ot = CodecRegistrationCheckerCompilerPlugin.parseCacheFile(buffer.rewind()).toSet
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Huh TBH I don't like C++-style identifiers like that... esp. in a code like this, which already puts a heavy mental burden on the readers ☹️ pls reasonably expand the identifiers while you're here!

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@PawelLipski - done - please, take a look

@LukaszKontowski LukaszKontowski merged commit 0503350 into main May 24, 2022
@LukaszKontowski LukaszKontowski deleted the optimize_compilation_phase/135 branch May 24, 2022 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Optimize compilation phase for codec registration checker
2 participants