Comments (3)
Actually measured with:
console.time("foo");
exp.rpc.getContacts(1, 2, '');
console.timeEnd("foo")
and it shows at most 27ms :/
So react debounce/memo wrappers might be adding something to it.
from deltachat-desktop.
You forgot an await
:
console.time("foo");
await exp.rpc.getContacts(window.__selectedAccountId, 2, '');
console.timeEnd("foo")
In my tests:
exp.rpc.getContactIds
: is 1,5-25ms
exp.rpc.getContacts
: is 65-77ms
The debouncing might add a delay, especially if it waits the initial time, haven't looked at the code, but I think using a virtual list as the already existing issue #1830 says is the real solution.
from deltachat-desktop.
merged comments into #1830 and closing this as duplicate
from deltachat-desktop.
Related Issues (20)
- Delta Chat changes file name of the attachment
- When the DeltaChat window is small (1/4 and smaller in 1080p) there is some layout issues HOT 2
- Register to handle i.delta.chat links HOT 2
- qr code scanner: also accept images from clipboard and scan from them
- "Save As" in avatar view not working HOT 3
- Remove Sidebar menu HOT 1
- Account Sidebar: Further Steps HOT 2
- Refactor to remove possible races when switching account in message list / chatstore HOT 2
- windows: add-second-device issues HOT 3
- Flickering issue when hovering over account switch avatar HOT 1
- do not enable experimental feature by default HOT 10
- "Tap to learn more" doesn't do anything on error messages from sending from another device
- chat titles are selectable, but selection results in unusual behaviour HOT 3
- shadow missing for mute icons on accounts in sidebar HOT 1
- buttons became a little clumsy and less distinctive
- "show full message" html-view broken HOT 4
- Editting name of a contact does not change their name in the messages HOT 1
- Popup with reaction details only shows one reaction per contact HOT 4
- Cramped layout at lower resolutions HOT 1
- "Open" instead of "Save" in directory selector HOT 10
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 deltachat-desktop.