Skip to content
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

3.0 js-framework-benchmark update #54

Closed
leeoniya opened this issue Apr 8, 2023 · 4 comments
Closed

3.0 js-framework-benchmark update #54

leeoniya opened this issue Apr 8, 2023 · 4 comments

Comments

@leeoniya
Copy link
Contributor

leeoniya commented Apr 8, 2023

hey @localvoid

wondering why you switched to using Entry directly for selected rather than entry.id? except, oddly, in getKey(entry) => entry.id.

is there a perf win to not using id? i actually prefer the id version since it demonstrates the vdom lib does not expect referential integrity from row items (you can JSON.parse() a new set of entries without breakage), which is a big advantage that some fine-grained libs dont have. using id feels more "nothing up my sleeve" honest.

@localvoid
Copy link
Owner

Don't think that there will be any noticeable perf difference. I think that I've switched to entries in this benchmark when I've experimented with dynamic lists for immutable collections that doesn't generate key arrays and used prev entries to retrieve previous keys. This experiment was a mistake.

I'll update pull request and change it back.

@leeoniya
Copy link
Contributor Author

leeoniya commented Apr 8, 2023

i'm curious how the benchmark performs with your fixed SCu? 🤔 i was a bit worried things might regress a lot once that was removed from the impl, so actually glad to hear it wasnt working anyways 😅

@localvoid
Copy link
Owner

i'm curious how the benchmark performs with your fixed SCu?

Without sCU:

image

Vanilla / With sCU:

image

@leeoniya
Copy link
Contributor Author

leeoniya commented Apr 8, 2023

if that's the most significant difference then yeah, simpler implementation FTW 👍

i hate these massive 16x CPU slowdowns, almost as much as i hate that the benchmark is dominated by layout/reflow in many cases.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants