HackerTrans
TopNewTrendsCommentsPastAskShowJobs

shudv

no profile record

Submissions

Accountability Throughput

2 points·by shudv·letzten Monat·0 comments

Show HN: An update-aware approach to incremental sorting (DeltaSort)

github.com
6 points·by shudv·vor 6 Monaten·1 comments

comments

shudv
·vor 6 Monaten·discuss
If you have worked with React before - you would know that its actually not straightforward to correctly memoize computation. That is specially true for operations on collection data like filters and sorts.

That pushed me to first build this - https://github.com/shudv/memotable

which is a way to build a "read-optimised" in-memory collection so that re-renders in the ui layer do not run filters and sorts on the data again and again unnecessarily.

And this was sufficient to solve my original problem.

DeltaSort was just something that came to me while I was thinking about taking memotable performance to the next level - make the sorting as fast as possible. Thats when it hit me - if I am able to somehow use the information about the delta since the previous sort - that might help me re-sort much faster. And it turns out, it actually is much faster (at least for the Rust based implementation)
shudv
·vor 6 Monaten·discuss
you are right - december is a good time to disconnect from the daily chaos and do some focussed work.

I worked on this: https://github.com/shudv/deltasort

Its a more efficient way to incrementally repair sorted arrays. Feedback welcome!

What did you build?
shudv
·vor 6 Monaten·discuss
OpenReview PDF: https://openreview.net/attachment?id=AlMKtDfJvy&name=pdf