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

14
LINES

< > BotCompany Repo | #1014158 // Test speed of loadUtf8LineFromFile (OK, got 10 ms)

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

Download Jar. Uses 865K of libraries. Click here for Pure Java version (5274L/34K).

1  
!7
2  
3  
p {
4  
  maxConsoleChars(100000);
5  
  
6  
  File f = unpackSimpleWikipedia();
7  
  long size = fileSize(f);
8  
  long seek = size-100000;
9  
  print("File size: " + size + ", seeking: " + seek);
10  
  time2 {
11  
    S line_check = loadUtf8LineFromFile(f, seek);
12  
  }
13  
  print("read: " + sfu(line_check));
14  
}

Author comment

Began life as a copy of #1014155

download  show line numbers  debug dex  old transpilations   

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

No comments. add comment

Snippet ID: #1014158
Snippet name: Test speed of loadUtf8LineFromFile (OK, got 10 ms)
Eternal ID of this version: #1014158/3
Text MD5: 55d26d4227d7d823a50fe121672d678a
Transpilation MD5: 29177d3d777df6e26e7515d35d3dcc43
Author: stefan
Category: javax / io
Type: JavaX source code (desktop)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2018-04-15 12:48:19
Source code size: 297 bytes / 14 lines
Pitched / IR pitched: No / No
Views / Downloads: 408 / 1119
Version history: 2 change(s)
Referenced in: [show references]