简体   繁体   English

GWT中的大量数据处理

[英]Huge Data Processing in GWT

I am having a bunch of records (approx 10k) and need to be encrypted at the client side and then traverse over the network with RPC call . 我有一堆记录(大约10k),需要在客户端加密,然后通过RPC调用遍历网络。 The Encryption process and traversing to server takes long time for 10k records. 加密过程和遍历到服务器需要很长时间才能获得10k记录。 Is there any way so that the time can be reduced. 有没有什么方法可以减少时间。

Time for Encryption takes : 1:10 Minutes Time for sending and receiving back the 10k records from Client to Server and Server to Client takes : 3:46 Minutes 加密时间:1:10分钟从客户端向服务器和服务器发送和接收10k记录的时间为:3分46秒

Server is on GoDaddy - US and am accessing from India. 服务器在GoDaddy - US上,正在从印度访问。 Client machine Configuration : Currently 4GB Memory (which may be less in real time , might be 1GB or 2GB) Server Machine Configuration: 4GB 客户端机器配置:目前4GB内存(可能实时较少,可能是1GB或2GB)服务器机器配置:4GB

Encryption is done at client side only. 加密仅在客户端完成。

The Java Objects are being traversed in List and Map Collections. Java对象正在列表和地图集合中遍历。

尝试运行而不需要调试,看看需要多长时间。

Well here are some thoughts: 这里有一些想法:

Speeding up client-side encryption : 加速客户端加密

Are you using a 3rd party library to do encryption? 您使用第三方库进行加密吗? I don't think you will be able to improve this much with Javascript. 我不认为你能用Javascript改进这么多。 You could look for another library which might be faster. 您可以寻找可能更快的另一个库。

However you might also look into Native Client . 但是,您也可以查看Native Client
This allows you to run C/C++ code in the Chrome sandbox with nearly native speed. 这允许您以几乎本机的速度在Chrome沙箱中运行C / C ++代码。 However right now it only works in the latest Chrome versions. 但是现在它只适用于最新的Chrome版本。

You could have the JS encryption library as a fallback for all other browsers (Firefox, Safari, IE) 您可以将JS加密库作为所有其他浏览器的后备(Firefox,Safari,IE)

Speeding up sending to backend/server 加快发送到后端/服务器

I can only think of using some kind of client side compression library to compress the encrypted 10k records before sending it to the server. 我只能想到使用某种客户端压缩库来压缩加密的10k记录,然后再将其发送到服务器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM