refactor(engine): optimize sandbox config storage#8035
Conversation
f0e663f to
3735283
Compare
6c4eac8 to
b031433
Compare
|
@snowleopard should be ready now |
f1ce156 to
97cf6ec
Compare
snowleopard
left a comment
There was a problem hiding this comment.
Looks good but I left some suggestions/questions.
Also: have you run any benchmarks?
Right now the benchmarking server is broken. Once it's back up, I'll bring some numbers. |
3eb2635 to
e6794f7
Compare
|
@rgrinberg Benchmarking is working again, can you resurrect this? |
e6794f7 to
d2d1f12
Compare
|
It does reduce major and promoted words by around 0.3-0.4%. Not sure if it's worth it, I'll let @snowleopard decide. We did end up using bit_set for something else, so I will merge that at least. |
|
@rgrinberg |
477abce to
b4d1c9f
Compare
|
ping @snowleopard |
a0f0eb3 to
7d7f058
Compare
snowleopard
left a comment
There was a problem hiding this comment.
Looks good though see one question. I haven't had time to run any benchmarks internally but it should be a small win.
We store a sandbox configuration set for every single action we create. For a large build, this can add up. Our old representation was taking 6 words to represent this. This PR changes it to use only a single word. Moreover, this new set now opaque to the GC, speeds up comparison, hashing, etc. Signed-off-by: Rudi Grinberg <me@rgrinberg.com> <!-- ps-id: 8d6ab81b-57f7-4c94-b39c-617e78e9479d -->
7d7f058 to
419127f
Compare
We store a sandbox configuration set for every single action we create. For a large build, this can add up. Our old representation was taking 6 words to represent this. This PR changes it to use only a single word. Moreover, this new set now opaque to the GC, speeds up comparison, hashing, etc. Signed-off-by: Rudi Grinberg <me@rgrinberg.com>
We store a sandbox configuration set for every single action we create.
For a large build, this can add up.
Our old representation was taking 6 words to represent this. This PR
changes it to use only a single word. Moreover, this new set now opaque
to the GC, speeds up comparison, hashing, etc.
Signed-off-by: Rudi Grinberg me@rgrinberg.com