Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3332927
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
893 B
Referenced Files
None
Subscribers
None
View Options
diff --git a/keyserver/src/scripts/test-threadstore-reductions.js b/keyserver/src/scripts/test-threadstore-reductions.js
new file mode 100644
index 000000000..0334499a4
--- /dev/null
+++ b/keyserver/src/scripts/test-threadstore-reductions.js
@@ -0,0 +1,20 @@
+// @flow
+
+import ashoat from 'lib/facts/ashoat.js';
+
+import { main } from './utils.js';
+import { fetchThreadInfos } from '../fetchers/thread-fetchers.js';
+import { createScriptViewer } from '../session/scripts.js';
+
+const viewer = createScriptViewer(ashoat.id);
+
+async function testThreadStoreReductions() {
+ const { threadInfos } = await fetchThreadInfos(viewer);
+ const beforeReductions = JSON.stringify(threadInfos);
+ const beforeBytes = new Blob([beforeReductions]).size;
+ console.log(
+ `before reductions, Ashoat's ThreadStore is ${beforeBytes} bytes large`,
+ );
+}
+
+main([testThreadStoreReductions]);
File Metadata
Details
Attached
Mime Type
text/x-diff
Expires
Sat, Nov 23, 2:42 AM (22 h, 55 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2559417
Default Alt Text
(893 B)
Attached To
Mode
rCOMM Comm
Attached
Detach File
Event Timeline
Log In to Comment