Libraryless. Click here for Pure Java version (2546L/17K).
static Pair<guessDeepObjectSize_recursive_Data, Long> estimateWebBotSize(O o) { Collection<S> fields = fields(o); new L l; for (S field : fields) { if (sizeCalculation_shouldIgnoreProgramField(field)) continue; O value = get(o, field); if (value == null) continue; l.add(value); } O[] array = asObjectArray(l); new guessDeepObjectSize_recursive_Data data; data.seen.add(o); ret pair(data, guessDeepObjectSize_recursive(data, array) -inMemorySizeOfArray(array) +unsafe_sizeOf(o)); }
download show line numbers debug dex old transpilations
Travelled to 6 computer(s): bhatertpkbcr, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt
No comments. add comment
Snippet ID: | #1024089 |
Snippet name: | estimateWebBotSize [might work] |
Eternal ID of this version: | #1024089/11 |
Text MD5: | a53677d3990496732c71ed96db3cce79 |
Transpilation MD5: | 235916fec9e706f01229eb3cabd10eb0 |
Author: | stefan |
Category: | javax / html |
Type: | JavaX fragment (include) |
Public (visible to everyone): | Yes |
Archived (hidden from active list): | No |
Created/modified: | 2019-07-20 18:56:43 |
Source code size: | 549 bytes / 18 lines |
Pitched / IR pitched: | No / No |
Views / Downloads: | 195 / 302 |
Version history: | 10 change(s) |
Referenced in: | #1006654 - Standard functions list 2 (LIVE, continuation of #761) #1024095 - estimateWebBotSize [old version] |