Libraryless. Click here for Pure Java version (1156L/8K/31K).
!7 p { for (int strlen = 4; strlen <= 40; strlen++) { final Iterator<S> it = allWordsOfAlphabet_fixedLength("\u13a0\u13a1\u13a2\u13a3\u13a4\u13a5\u13a6\u13a7\u13a8\u13a9\u13aa\u13ab\u13ac\u13ad\u13ae\u13af", strlen); double objSize = exclusive_measureSizeOfObject(func { assertTrue("Alphabet", it.hasNext()); ret it.next(); }); int rounded = iround(objSize); long f = guessStringSize(strlen); print("String length=" + strlen + ". Approximate object size: " + objSize + " => " + rounded + " bytes. Formula: " + f); } }
Began life as a copy of #1017087
download show line numbers debug dex old transpilations
Travelled to 14 computer(s): aoiabmzegqzx, bhatertpkbcr, cbybwowwnfue, cfunsshuasjs, gwrvuhgaqvyk, irmadwmeruwu, ishqpsrjomds, lpdgvwnxivlt, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tslmcundralx, tvejysmllsmz, vouqrxazstgt
No comments. add comment
| Snippet ID: | #1017100 |
| Snippet name: | Measure size of non-Latin string [shortened] |
| Eternal ID of this version: | #1017100/4 |
| Text MD5: | b630c660c953b4b48b9f051478979c10 |
| Transpilation MD5: | daa4862ba755e5f9d4f797b889081c05 |
| Author: | stefan |
| Category: | javax |
| Type: | JavaX source code |
| Public (visible to everyone): | Yes |
| Archived (hidden from active list): | No |
| Created/modified: | 2018-07-11 23:37:48 |
| Source code size: | 552 bytes / 11 lines |
| Pitched / IR pitched: | No / No |
| Views / Downloads: | 602 / 729 |
| Version history: | 3 change(s) |
| Referenced in: | #1018913 - Measure memory size of object array |