webogram-i2p/app/js/lib/pq_worker.js
Igor Zhukov 4f4c90398d Fix #18
Now PQ prime factorisation is performed with closure long library when
possible. It gives significant performance improvements (10x sometimes)
2014-03-30 13:01:17 +04:00

18 lines
460 B
JavaScript

/*!
* Webogram v0.0.21 - messaging web application for MTProto
* https://github.com/zhukov/webogram
* Copyright (C) 2014 Igor Zhukov <igor.beatle@gmail.com>
* https://github.com/zhukov/webogram/blob/master/LICENSE
*/
importScripts(
'../../vendor/console-polyfill/console-polyfill.js',
'mtproto.js',
'../../vendor/closure/long.js',
'../../vendor/jsbn/jsbn_combined.js'
);
onmessage = function (e) {
postMessage(pqPrimeFactorization(e.data));
}