flatbush
react-virtualized
Our great sponsors
flatbush | react-virtualized | |
---|---|---|
5 | 40 | |
1,374 | 25,951 | |
- | - | |
0.0 | 1.6 | |
3 months ago | 4 months ago | |
JavaScript | JavaScript | |
ISC License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
flatbush
-
Databases are the endgame for data-oriented design
> (There are ECS frameworks in JavaScript, which gives you absolutely no control over memory layout and thus completely defeats one of the primary purposes of the pattern.)
While JS does not provide great support for bit packing complex structs, typed arrays give you quite a bit of control over memory layout for simple numeric types, which is what you usually want for optimal data-oriented code anyway. This is a common technique used in fast JS libs for data visualization, ie:
https://github.com/mourner/flatbush
There are also basic operators required for bitarrays, which are useful for ECS and memory-efficient code generally.
-
React Virtualisation from scratch
using flatbush library instead of rbush which optimise the statically placed element, from the benchmark in the repository it could boost up to 5x the performance of rbush.
-
Load GeoHash data in RAM for querying for Proximity Searches
But for 500 k points, it's not many. I'd put it in the database tech I was using and hit an API for it. Or like you say, load it into memory and use Mourner's flatbush for a super simple and super fast solution..
- Flatbush: A fast static spatial index for 2D points and rectangles in JavaScript
-
Protobuf-ES: The Protocol Buffers TypeScript/JavaScript runtime we all deserve
> At pbf speeds, decoding is usually no longer a bottleneck, but bandwidth might be when comparing with gzipped JSON.
we were streaming a few hundred datapoints in a dozen flat arrays over websocket at 20-40hz and needed to decode the payload eagerly. plain JSON was a multi-factor speedup over pbf for this case. but it's fully possible i was holding it wrong, too!
even if your "bottleneck" is rendering/rasterization (10ms), but your data pipe takes 5ms instead of 1ms, it's a real effect on framerate, battery, thermals, etc.
i'm a big fan of your work! while i have you here, would you mind reviewing this sometime soon? ;)
https://github.com/mourner/flatbush/pull/44
react-virtualized
-
The Secret Weapon of Top Developers: 7 React JS Libraries You Can't Afford to Ignore
You may increase the rendering efficiency of tabular and huge list data by using the React Virtualized module. React apps perform better overall when the quantity of requests and DOM elements is limited. React Virtualized is comparable to many other tools; however, what sets it apart from the competition is the sheer volume of features and excellent upkeep.
-
33 React Libraries Every React Developer Should Have In Their Arsenal
17.react-virtualized
-
React Virtualisation from scratch
If you have been using React for awhile, you may have heard of the infamous virtualisation library react-window or it's predecessor react-virtualized
-
13 Must Know Libraries for a React Developer
React Virtualized is a React library that helps you work with large lists and tabular data efficiently in React. It has more than 25K stars on GitHub and more than 2.5 million weekly downloads on NPM as of August 2023.
-
Faster re-rending of table when only inserts are needed
Use virtualization (e.g. react-virtualized) to prevent off-screen components from actually rendering.
-
5 Tips for Optimizing ReactJS Performance and Building Lightning-Fast Applications
Virtualization can be achieved using third-party libraries like react-window or react-virtualized. These libraries provide a way to render only the visible data and load more data as needed, resulting in faster application performance.
-
Phoenix Dev Blog - Streams
You can implement the same pattern on the web when dealing with large amount of data. There are some libraries for React that trivialize this, like https://github.com/bvaughn/react-virtualized
-
Introducing Suspense: APIs to simplify data loading and caching, for use with React Suspense.
Oh, right. I totally forgot to mention that– but the idea of "less rendering" in this case seems less like a Suspense concern and more like a windowing concern. I've written a few libraries for that stuff (react-window and react-virtualized) although there are others that may fit your needs better. Their main focus is limiting what you're rendering to more or less only what's on the screen at any given point. Combine that with memoized filtering and I would imagine you're set.
-
Best infinity scroll?
I've used the InfiniteLoader from react-virtualized in combination with useInfiniteQuery from @tanstack/react-query and it was relatively painless.
-
Thoughts on this Timeline design I've been working on?
Here’s a react library https://github.com/bvaughn/react-virtualized
What are some alternatives?
virtualised-whiteboard
react-lazyload - Lazy load your component, image or anything matters the performance.
liwords - A site that allows people to play a crossword board game against each other
react-window - React components for efficiently rendering large lists and tabular data
protoc-gen-validate - Protocol Buffer Validation - Being replaced by github.com/bufbuild/protovalidate
react-virtual - 🤖 Headless UI for Virtualizing Large Element Lists in JS/TS, React, Solid, Vue and Svelte [Moved to: https://github.com/TanStack/virtual]
ts-proto - An idiomatic protobuf generator for TypeScript
streamlit - Streamlit — A faster way to build and share data apps.
rbush - RBush — a high-performance JavaScript R-tree-based 2D spatial index for points and rectangles
react-virtuoso - The most powerful virtual list component for React
pbf - A low-level, lightweight protocol buffers implementation in JavaScript.
vite - Next generation frontend tooling. It's fast!