-
Notifications
You must be signed in to change notification settings - Fork 95
Reduce stack allocated buffered size #283
Reduce stack allocated buffered size #283
Conversation
|
It looks like @ithinuel hasn't signed our Contributor License Agreement, yet.
You can read and sign our full Contributor License Agreement at the following URL: https://cla.parity.io Once you've signed, please reply to this thread with Many thanks, Parity Technologies CLA Bot |
|
The main page of the repo states the below in respect of contributions i.e. it doesn’t say you must sign up to a contributor licence agreement
The Readme should probably be updated if people now have to sign a CLA to contribute. Or this bot disabled if it's no longer the case. |
|
Hey just ignore this bot, thanks for the pr!
On Wed, 23 Oct 2019 at 16:15, Wilfried Chauveau ***@***.***> wrote:
The main page of the repo states the below in respect of contributions
i.e. it doesn’t say you must sign up to a contributor licence agreement
Contribution
Unless you explicitly state otherwise, any contribution intentionally
submitted for inclusion in parity-wasm by you, as defined in the Apache-2.0
license, shall be dual licensed as above, without any additional terms or
conditions.
The Readme should probably be updated if people now have to sign a CLA to
contribute. Or this bot disabled if it's no longer the case.
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#283?email_source=notifications&email_token=AAYJ6VRQUBQWQBX7URR26BDQQBE7TA5CNFSM4JEAGMJKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOECBLRAQ#issuecomment-545437826>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAYJ6VSQ7HIQYER3G4T7F2LQQBE7TANCNFSM4JEAGMJA>
.
--
Best regards,
Nikolay Volf.
|
|
It is still at least for my usecase :) |
|
Sorry for the delay, first of all. Can you share more info about your use-case? I am wondering why would you want to use parity-wasm on an MCU. I think this PR would de-optimize the non-MCU code path, e.g. when we are reading from a file. |
|
Running wasm on an MCU as an alternative to mycropython or Lua except that with wasm the compilation is done ahead of time. What are the advantage of running an interpreter on non-mcus rather than jit solutions (Lucet/Wasmer/Wasmtime etc) ? Anyway, I would be happy with a EDIT: However, a feature flag would also require a similar flag in wasmi to pass over the feature dependency. |
|
The PoC can be found here : ithinuel@90bf032 Note this is based on parity-wasm 0.41 instead of 0.42.3 because wasmi 0.7.0 is dependent on that older version. |
|
I think that would work for me. What do you think @pepyakin ? |
|
Yeah, I wouldn't mind to include that. Although I am not sure if we can give any strong commitment on supporting this use-case long-term at this moment. |
|
Being mindful of the memory usage (especially on the stack) is always a good thing. The commitment should be limited at keeping the value in constants rather than hard-coded. I'll push the extra commit to this PR and will create a new PR on wasmi to support the feature forwarding. |
9eed563 to
90bf032
Compare
90bf032 to
6135140
Compare
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.
LGTM
Constrained targets such as microcontroller will rarely have more than a few kilo byte of stack.