2 ms·
> Could I capture all these sorts' inputs to generate My Real-Life Sorting Corpus of One Day's Worth of Data? You could wrap the lib containing the sort functi
by rightbyte 4y ago
> Could I capture all these sorts' inputs to generate My Real-Life Sorting Corpus of One Day's Worth of Data?
You could wrap the lib containing the sort function and write the input to some file.
It is easy of it is C at least.
- nathell 4y agoIt is easy enough to wrap libc's qsort() with LD_PRELOAD, sure. The problem is heterogeneity: qsort() is by far not the only sort implementation the machine is running. Even identifying them all might be a daunting task, not to mention figuring out how to wrap them.