Skip to content

Conversation

@RealTimeChris
Copy link
Member

Summary

Converts all color constants in the colors namespace to constexpr, enabling compile-time evaluation and optimization.

Changes

  • Added constexpr to all color constant declarations
  • No functional changes - purely optimization

Benefits

  • Compile-time evaluation: Colors used in constant expressions can now be computed at compile time
  • Dead code elimination: Unused color constants can be completely eliminated by the compiler
  • Better inlining: constexpr enables more aggressive compiler optimizations
  • Zero runtime cost: No performance impact, only improvements

Code change checklist

  • I have ensured that all methods and functions are fully documented using doxygen style comments.
  • My code follows the coding style guide.
  • I tested that my change works before raising the PR.
  • I have ensured that I did not break any existing API calls.
  • I have not built my pull request using AI, a static analysis tool or similar without any human oversight.

@netlify
Copy link

netlify bot commented Dec 3, 2025

Deploy Preview for dpp-dev ready!

Name Link
🔨 Latest commit 39c9bbd
🔍 Latest deploy log https://app.netlify.com/projects/dpp-dev/deploys/693090414ba3920008f49118
😎 Deploy Preview https://deploy-preview-1520--dpp-dev.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@github-actions github-actions bot added documentation Improvements or additions to documentation code Improvements or additions to code. labels Dec 3, 2025
@braindigitalis braindigitalis merged commit 432a124 into brainboxdotcc:dev Dec 3, 2025
70 checks passed
@Jaskowicz1
Copy link
Contributor

was that summary wrote with chatgpt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

code Improvements or additions to code. documentation Improvements or additions to documentation

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants