-
Notifications
You must be signed in to change notification settings - Fork 684
refactor rcs_chunked_list and remove its c++ features #806
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
performance in x86 machine. remain same
|
b1e3830
to
5ce4350
Compare
Could you please repeat these measurements on an ARM board? (The best would be on an RPI2) |
I've already started work on this topic (#791 (comment)) and I have a not-yet-published patch very similar to yours, but I intended to keep it private until all the code size increase issues I've experienced are solved. To reduce the chance of duplicating work: I've also been working on the refactoring of the operand class in the parser. |
Yes I agree to avoid work duplication. I think you should discuss how to share the work. Perhaps a good topic for Gitter :) |
measure on RPI2, @rtakacs is the data similar with yours?
binary size: |
So this is actually a size reduction! Great! |
@zherczeg Do you mean the RSS result? I don't know why the rss will change in RPI2. In x86 machine, it is exactly same after the refactor. |
@jiangzidong: My last measurement with my patch was at the end of December. The code size was a bit bigger than yours, but the performance test results were similar to yours. |
JERRY_ASSERT (node_p != NULL); | ||
|
||
MEM_CP_SET_POINTER (node_p->prev_cp, prev_node_p); | ||
} |
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.
Usually, we place comment with function name after closing bracket, related to the function.
In the case, the line should be the following: } /* rcs_chunked_list_set_prev */
.
5ce4350
to
b01a534
Compare
issue jerryscript-project#806 JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
@ruben-ayrapetyan Thanks, I fixed as you commented. |
Looks good to me |
LGTM, but I'm not a reviewer. |
LGTM |
@jiangzidong: I'm compiling the project with a standard C compiler and fixing the remaining little C++ features. Before we land this patch, please add a 'typedef' to the rcs_chunked_list_t struct to use it as a type. |
b01a534
to
b082a74
Compare
@rtakacs: updated. sorry for the mistake |
issue jerryscript-project#806 JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
@jiangzidong Thanks for the update. The fix looks good to me. |
issue #806 JerryScript-DCO-1.0-Signed-off-by: Zidong Jiang [email protected]
Landed (dfb22c3) |
remove rcs_chunked_list 's c++ features. All the functionality remain the same
It can pass the make precommit.
in x86 machine (32bit)
size -A release_jerry
output