Page MenuHomePhabricator

No OneTemporary

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

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)

Event Timeline