Skip to content

Remove html template#845

Merged
jfantinhardesty merged 2 commits intomainfrom
enable-deadcode-elimination-remove-html-template
Mar 2, 2026
Merged

Remove html template#845
jfantinhardesty merged 2 commits intomainfrom
enable-deadcode-elimination-remove-html-template

Conversation

@jfantinhardesty
Copy link
Contributor

What type of Pull Request is this? (check all applicable)

  • Refactor
  • Feature
  • Bug Fix
  • Optimization
  • Documentation Update

Describe your changes in brief

Remove use of html/template to enable dead code elimination in the go compiler. This reduces the size of our Linux binary by about 32%. See this article for more information on why this enables dead code elimination: https://www.datadoghq.com/blog/engineering/agent-go-binaries/.

Checklist

  • Tested locally
  • Added new dependencies
  • Updated documentation
  • Added tests

Related Issues

  • Related Issue #
  • Closes #

@jfantinhardesty jfantinhardesty merged commit 6a3ccc0 into main Mar 2, 2026
52 of 64 checks passed
@jfantinhardesty jfantinhardesty deleted the enable-deadcode-elimination-remove-html-template branch March 2, 2026 22:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants