-
Notifications
You must be signed in to change notification settings - Fork 3.1k
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
Resolve deprecation status of static timers #2601
Comments
IMO, Removing the static timers is a bad idea. Legacy compatibility aside, using static timers consumes less memory than using the OOP timers. My vote is to remove the deprecation statement from the docs. |
That's why we have been using
How much? |
"How much?" That's a question best answered by @TerryE ;-) |
I disagree...Terry didn't make any such claim (yet) 😉 |
Marcel, all I take by Joe's comment is that of the committers, I possably have the best understanding of the Lua VM internals and VM and so can answer the Q: what are the memory +/- of using the Object form of timers vs the static form? That is providing a data point which aids any decision that we make. 😊 |
"Terry didn't make any such claim" Actually, he did... I can't recall at the moment the specific context of his statement but I do recall it was to justify his use of static timers in a snip of Lua code he wrote (if pressed, I will set off on a quest to find and re-post the statement). Also, I suggested Terry supply the answer as IMO, he is a very knowledgeable resource on the subject. |
AFAICT from reading the code:
I think, given the very low additional footprint of dynamic timers and their superior programming model (much more OO, much less assembler / "which number am I not using at this point in the program?"), that static timers should be completely retired, the |
👍 Any volunteers? |
Ever since @djphoenix added an OO API to the timer module with f1afe7b over two years ago our documentation has been saying that
That's a bit problematic for two reasons:
platform_print_deprecation_note
intmr.c
to print a deprecation note to the console (like we do elsewhere) whenever a static timer function is used.It's all history now but I'd like to resolve that deprecation note in the docs. IMO we should either removed it or follow-up with code changes.
Tagging @djphoenix, @dnc40085 who is listed as the module maintainer in the docs and @devsaurus who ported the module to the ESP32 and thereby removed the static timers if I'm not mistaken
The text was updated successfully, but these errors were encountered: