- size_t bufsize = ctx->big_buf_half_size;
-#ifdef SORT_UNIFY
- // When we promise unification, we have to reduce the number of records
- // to be sure that both pointers and merged records fit in the 2nd half
- // of the big_buf. So we eat as much memory as s-internal.h, but still
- // we are faster.
- u64 maxkeys = bufsize / (sizeof(P(key)) + sizeof(void *));
-#else
- u64 maxkeys = bufsize / sizeof(P(key));
+ size_t workspace = 0;
+#ifdef CONFIG_UNIFY
+ workspace = sizeof(P(key) *);
+#endif
+#if 0 // FIXME: Workspace for radix-sort if needed
+ workspace = MAX(workspace, sizeof(P(key)));