JDownloader Community - Appwork GmbH
 

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 14.10.2017, 22:51
botmtl botmtl is offline
DSL User
 
Join Date: Apr 2015
Location: Montreal
Posts: 39
Default EventScripter - ECMAScript 6 containers

I don't know how doable this is, it could be as easy as upgrading versions or be extremely complex.

Basically I wanted to have access to the javascript containers Set and Map inside an event scripter script.

The main issue I am having is that an array is very slow when you are dealing with a lot of links. Since I have kept all my downloads in the download pane starting in 2015, I am dealing with quite a few links (around 75000).

I have tried using an external library that implements those types, but the heap always explodes, i am guessing because each call is sandboxed(?).
Reply With Quote
  #2  
Old 16.10.2017, 10:50
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Hmm, works fine for me without any external library.

Code:
var map={};
map.helloworld="Hello World";
map.number=1;
alert(map.helloworld);
alert(map.number);
__________________
JD-Dev & Server-Admin
Reply With Quote
  #3  
Old 16.10.2017, 10:53
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

Same for Set. Set is just a Map with fixed Value that indiciates that the key exists
__________________
JD-Dev & Server-Admin
Reply With Quote
  #4  
Old 17.10.2017, 09:21
Jiaz's Avatar
Jiaz Jiaz is offline
JD Manager
 
Join Date: Mar 2009
Location: Germany
Posts: 79,290
Default

If you need more help, please let us know
__________________
JD-Dev & Server-Admin
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 06:59.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.