ArduinoThread icon indicating copy to clipboard operation
ArduinoThread copied to clipboard

Add light versions.

Open stanmain opened this issue 7 years ago • 3 comments

Light versions of Thread and StaticThreadController that uses less memory. Maximum period is only 32,767 seconds. It is recommended to use only in case of a memory deficit.

stanmain avatar Apr 23 '18 10:04 stanmain

The lite version is really incompatible with the original library. This is an alternative. It would be better to create a new lite library instead of the merger? And how is it better to do this? I do not have the experience of pulling a request, but I think that this version can help someone.

stanmain avatar Apr 24 '18 11:04 stanmain

I'm not the maintainer of this project, so I can't make a decision. But I guess the best solution is to make separate library (with proper documentation and examples) and put some cross-reference to it from this project to help people to find lightweight version. Hope @ivanseidel can take a look and comment.

CAHEK7 avatar Apr 24 '18 13:04 CAHEK7

Hi @stanmain! Thanks for reaching out and making contribution to the library!

We need to understand how compatible this can be to choose if it will be merged into ArduinoThread, or a new Library (we could reference it in this case in the README).

I have a few questions to guide us during this process.

  • As I can see, the both versions are very different. One would be able to use both Thread and ThreadLite inside a ThreadController? If not, would that be possible altering the code?

  • Do you think users will get confused by not being able to use both classes in the same project? Also, using both original and lite one, would cost even more than what the Lite itself proposes to help right?

  • How much overhead/program-space is reduced with this proposal?

@CAHEK7 thank you very much for the help!

ivanseidel avatar Apr 30 '18 13:04 ivanseidel