Comments (7)
adding transaction around it for Dexie helps a bit:
https://gist.github.com/anonymous/f37c9e6a95ceda2a529d
down to 22sec on mobile
from dexie.js.
looking at the chrome tools lots of time is wasted by this:
function fakeAutoComplete(fn) {
var to = setTimeout(fn, 1000);
clearTimeout(to);
}
can this be changed/removed/improved?
from dexie.js.
When coding with visual studio, those lines are priceless but we should have a build script that removes them in the release / minified version. I did a simple profiling of that sequence last year but came to the conclusion that they really fast in the particular browser i tested it in (probably some version of chrome, opera or ie) but did not dig so deep into it.
There is a general problem that Dexie doesn't have a build script that I hope that someone could help or with.
from dexie.js.
That piece of code is not needed and does nothing. It's just a way to improve the IDE 's code completion. Once a build script is in place (grunt, gulp or so), i'll remove those calls from the minified version.
What you can do right now, is either to remove the code in fakeautocomplete(), or to remove all calls to it. Will not affect behavior at all. Sorry I wasn't more clear in my last answer about the actual code change you could do.
from dexie.js.
The calls to setTimeout()/clearTimeout() are now removed. However, when testing performance with chrome/opera/ie/firefox, this change is not noticable. Haven't tested on safari though.
from dexie.js.
David, the difference for me was noticeable on mobile devices.
from dexie.js.
Mobile devices is a common use case for the library so hopefully this fix might improve performance a little then.
Thanks!
David
from dexie.js.
Related Issues (20)
- Cloud: When the device goes offline, the errors pile up. Can the cloud stop sync & ws connection when there is no internet? HOT 2
- Guidance for multi-lingual dexie database
- Transaction.table() is missing generic overload with insert type
- Seeking Guidance for Serverless Bi-directional Sync Between Two Dexie.js Instances HOT 7
- Dexie Cloud Feature request: user-specific public realm
- Is it possible to invite a user who is not signed up? HOT 6
- Error: too much recursion HOT 1
- Typescript returns errors regarding ID that is undefined HOT 11
- bulkDelete() for large number of primary keys is way too slow
- WebPush for DexieCloud Feature Request
- Dexie Cloud feature request: in-app invitations HOT 1
- dexie cloud db entries with image blob disapear HOT 2
- Return only one field?
- Typescript complain with compound ID HOT 2
- related tables in dexie HOT 2
- Dexie Cloud Manager - "Manage users" error HOT 3
- Authentication error with the fresh.deno framework HOT 1
- Issue with Dexie's table.where() Method when Targeting Existing IndexedDB with Indexed KeyPath
- "default" is not exported by "../../../Dexie.js/dist/dexie.min.js", imported by "../../../Dexie.js/import-wrapper-prod.mjs". HOT 12
- Transaction context is lost when running a recursive call in a loop HOT 8
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 dexie.js.