Comments (8)
I agree wholeheartedly; the fat shall be trimmed.
from immortaldb.
IronDB hit the gym: with @jcar787's PR #11, iron-db.min.js
bundle size is now
down to 23kB.
More fat remains to be trimmed.
from immortaldb.
https://bundlephobia.com/result?p=iron-db
from immortaldb.
IronDB v1.0.0 hit the gym again. I replaced lodash[-es] entirely. Minified
bundle down to 5kB. Minified + gzipped down to 2kB.
Closing this issue; no large, low hanging footprint optimizations remain.
Huge thank you @bm-stschneider, @kr05, @jcar787, and @ecwyne for your input and
help. Don't hesitate to let me know if there's anything else I can do for you.
from immortaldb.
I totally agree. I'm excited to use this but as of now it's going way over my performance budget.
from immortaldb.
I opened a PR to fix this issue.
https://github.com/gruns/irondb/pull/11
from immortaldb.
Hello everyone !
I have been watching this repo and am currently contemplating using it with rematch for a custom persisted state (there have been issues with redux-persist on android) and I must say that this looks very promising.
I am not sure if this will be of much help - haven't studied the code enough to understand its architecture fully.
-- but that being said --
Perhaps there is a way to prioritize client delivery where say the IronDB LocalStorage Primary mechanism is pushed/delivered as a critical path resource, to the client, and subsequently there after IronDB boots up client side and proceeds to internally Lazy Load its other secondary and tertiary mechanisms/non critical-functionality.
The inspiration comes from a framework-less application that I am currently building - consisting of entirely LitElement and Custom Web Components and the philosophy has lead to very small builds. (our entire app is less than 31K with feature parity ~80% that of Slack)
From a perspective of use case, the only critical functionality that I would need on application boot-up would be "Getting" data from Local Storage for the sake of redux rehydration. Other than that, "Setting" data, data validation, and multiple storages, could be "import(../Non-Critical-Functionality)" after the fact.
Please let me know some thoughts on this idea and maybe there is a way that I can get involved. This is very exciting.
All the best,
-Tsavo
from immortaldb.
@T-Knott-Mesh I'm afraid I don't understand your question.
Please open a new issue so your question gets proper attention and isn't
mistakenly amalgamated into this issue.
from immortaldb.
Related Issues (20)
- how to handle expired mechanism HOT 7
- SSR compatible HOT 6
- Option to remove all cookies set with ImmortalDB HOT 5
- I wouldn't recommend using SessionStorage HOT 3
- Ideas for additional persistent storage HOT 3
- Support for KV Storage HOT 2
- Reset database HOT 4
- Undefined should not be counted as value? HOT 2
- We don't use NPM or any module manager, so am getting "Cannot use import statement outside a module".... HOT 3
- Events HOT 6
- Add testing how-to snippet to the readme
- Set the SameSite attribute of saved cookies HOT 1
- Indexed DB HOT 1
- Differentiate a user-stored `'undefined'` from a deleted key with a sentinel value
- Use JSDoc HOT 3
- Synchronous get / set? HOT 1
- Size limit HOT 1
- Nextjs window is not defined error HOT 7
- You are only allowing strings and return undefined for JSON
- Implement a way to iterate the store keys
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from immortaldb.