-
Notifications
You must be signed in to change notification settings - Fork 684
Eliminate templates from jrt_read_from_buffer_by_offset and jrt_write_to_buffer_by_offset #708
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
Conversation
template<typename T> | ||
bool __attr_always_inline___ | ||
|
||
inline bool | ||
jrt_read_from_buffer_by_offset (const uint8_t *buffer_p, /**< buffer */ |
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.
Perhaps, now it is better to move implementations of the functions from header to a module like jrt.cpp
.
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.
Done.
1e64158
to
fbdfc46
Compare
…fset to eliminate template. JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]
fbdfc46
to
5dd6993
Compare
Looks good to me |
@rtakacs please share performance measurements and changes in binary size. |
I measured some things on a rpi2 board. The master revision was 140982e
Note: the other sections are not modified.
Note: all tests ran 10 times. Tests that failed are not shown in the table. |
The results look good. Can we get this merged? |
@tilmannOSG depends on @galpeter ^_^ |
@rtakacs, could you, please, rebase the patch to the current master? |
This is done by #791 so we can close this PR. |
Refactor jrt_read_from_buffer_by_offset and jrt_write_to_buffer_by_offset to eliminate template.
JerryScript-DCO-1.0-Signed-off-by: Roland Takacs [email protected]