forked from Aircoookie/WLED
-
-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding hints for the compiler for optimization. In case your custom build complains about "const", just remove the keyword. based on Aircoookie@e82f38e, but going further :-) * "const" class functions : function does not modify any class attributes ( --> "this" becomes const) * __attribute__((pure)) : function return value depends only on the parameters and/or global variables. The function does not modify any global or static variables. * __attribute__((const)) : function only examines arguments (no globals), and has no effects except the return value. This slightly more strict than "pure" * hot: tells the compiler "this functions is called very often" * cold: the opposite of hot
- Loading branch information
1 parent
273154d
commit 7f9da30
Showing
14 changed files
with
148 additions
and
145 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
7f9da30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It is a shame really that you take freely but don't give back.
You could've done this upstream as well.
I do understand MIT and GPLv3 issue, but still... Even though it shouldn't, it does sadden me.
7f9da30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh c'mon, you know that MM is doing experiments, and I often prefer to expose stuff to a limited audience first. In this case, I was not sure if spreading "const" throughout the busmanager will have bad side-effects.
About "taking freely" - its not much different to what other forks to - for example https://github.com/SteveEisner/WLEDtubes. I'm just cherry-picking because MM is no longer in sync with upstream so "update from upstream" does not work. We still have this "license barrier", however if you tell me what you like to have, we'll make that happen... you have my e-mail.
Just FYI, I have recently made some effect fixes and minor improvements in AC WLED first, then pulled it into MM.
7f9da30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Experiments and MM have nothing that would inseparably tie them. You can branch and experiment in AC as well with no cost or danger to anyone.
There is only benefit as we can merge those branches into other branches without any real wok. If they turn out to be dead end we can simply delete them.
I've opened several such branches (and later PRs).
I was/am sad because I thought you would know and commit "universal" benefits to upstream first (as it is easier then to merge/cherry-pick then downstream including license-wise).
As for others, yes I know many, many just take and give little or nothing back (or that their solutions are of little value in general). But they are "others" and we are "us". If you know what I mean.
Still, I am in now way offended or think less of your contributions. I just wanted to let you know that I care.
7f9da30
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I know what you mean.
You're a bit right, even when I will always do some (general) improvements in MM first. Especially when I'm working in MM any way, for example to improve HUB75 performance, then its just too much effort to first switch to upstream, branch, code, cherry-pick, etc. But in general I agree that we could bring more improvements to upstream.
Licensing is actually a problem for me, because I don't want to publish our "diamonds" under MIT any more. But for this, a solution is "in the making" (you know what I mean).