Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

22
LINES

< > BotCompany Repo | #1011697 // Bench exporting all webs to another module - it's faster than loading them from file

JavaX source code (desktop) [tags: use-pretranspiled] - run with: x30.jar

Download Jar. Libraryless. Click here for Pure Java version (16316L/115K).

!7

!include #1011700 // quickExport

set flag FastLisp.
static S intern(S s) { ret internPerProgram(s); }

p {
  L<Web> webs = asList(allIndexedWebs());
  Class module = hotwire(programID());
  poorMansProfiling(50);
  time "Export" {
    quickExport(webs, module, l(webs)*20);
  }
  poorMansProfiling_stop();
  
  print("Total runtime: " + toS(sysNow()-vmStartTime_sys(), 1) + " s"
    + " (" + toS(sysNow()-programLoadTime_sys(), 1) + " s in program)");
    
  poorMansProfiling_saveResults();
  poorMansProfiling_printInnermostFunctions();
}

Author comment

Began life as a copy of #1011571

download  show line numbers  debug dex  old transpilations   

Travelled to 15 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, onxytkatvevr, ppjhyzlbdabe, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1011697
Snippet name: Bench exporting all webs to another module - it's faster than loading them from file
Eternal ID of this version: #1011697/12
Text MD5: 505b940186e682dde8a6d54690d9f3d5
Transpilation MD5: a82342fd45b1661effb87f50d4cbe1a2
Author: stefan
Category: javax / a.i.
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2017-11-02 19:35:59
Source code size: 566 bytes / 22 lines
Pitched / IR pitched: No / No
Views / Downloads: 404 / 977
Version history: 11 change(s)
Referenced in: [show references]