stata-binscatter2 icon indicating copy to clipboard operation
stata-binscatter2 copied to clipboard

use frames in Stata 16

Open laszlosandor opened this issue 5 years ago • 2 comments

Stating the obvious: We should do away with the preserve-restore cycle whenever we can. In many big data projects, that was the bottleneck because of the disk I/O involved. I once rewrote binscatter just to avoid it. So, celebrate and spread the word: Stata can finally hold multiple datasets in memory.

laszlosandor avatar Jun 27 '19 14:06 laszlosandor

Oops, at the bottom of that very page:

The do- and ado-files that you have previously written that use preserve and restore will run faster if you use Stata/MP because it secretly uses frames in place of temporary files to preserve data.

laszlosandor avatar Jun 27 '19 15:06 laszlosandor

Hey Laszlo,

Definitely! As I think Sergio pointed out on the gtools issue you created, it is really irksome that preserve/restores are now implicit frames in some versions of Stata and not others. In any case, I'd like to see how much this matters, but I don't yet have institutional access to Stata 16.

mdroste avatar Jul 09 '19 14:07 mdroste