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

[feature] Support build tag to disable mocks and refactor code #61

Merged

Conversation

fako1024
Copy link
Owner

@els0r This solves a conundrum I've been having ever since I added the mock features. The PR looks big, but after all it's just copy / pasting code into new files with & without the new build tag in order to enable / disable it.
This should squeeze out the last bit of performance for package / production builds of goprobe once merged. By default nothing changes, only if the new build tag is set.

Closes #60

@fako1024 fako1024 added enhancement New feature or request performance Performance / optimization related topics labels Aug 28, 2023
@fako1024 fako1024 added this to the Initial Release (v1) milestone Aug 28, 2023
@fako1024 fako1024 self-assigned this Aug 28, 2023
@fako1024 fako1024 linked an issue Aug 28, 2023 that may be closed by this pull request
2 tasks
Copy link
Collaborator

@els0r els0r left a comment

Choose a reason for hiding this comment

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

As discussed: would be great to have these build tags available in the goProbe pipeline so we supply optimized binaries as build artefacts.

@fako1024 fako1024 merged commit a32220d into main Sep 3, 2023
4 checks passed
@fako1024 fako1024 deleted the 60-provide-slimcap_nomock-build-tag-and-allow-feature-toggle branch September 3, 2023 14:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request performance Performance / optimization related topics
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Provide slimcap_nomock build tag (and allow feature toggle)
2 participants