loading...

Backend data is really slow returned.

burakkp profile image Burak Kucukparmaksiz ・1 min read

Hi folks,
I am looking for solution to quick returns backend data. I am calling remote.reqiure('....node file path') in react component . This data returns take too much time. How can i handle this issue? Do you have any idea?
Thanks,

Discussion

markdown guide
 
 

Hi James,

I checked Performance screen on Dev-Tools, It takes time this backend connection part. I am using like this remote.require('./backend/backend-native.node'). This part almost takes extra 20ms.

 

I believe you but without seeing the code, I can't help you debug.

 

what's the file size?
If it's a large file I would recommend using a CDN

 

Hi Hanan,

My backend file size 1.3MB this file has a just calculation method. I get that method and apply to my data. I checked Performance screen on Dev-Tools, It takes time this backend connection part. I am using like this remote.require('./backend/backend-native.node').

 

I think that's just electron then. look at this thread
github.com/electron/electron/issue...

Thanks Hanan,

I will look this.