Skip to content

sergiocorreia/gc

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GC - Garbage Collection for Stata variables (programmer command)

gc is just a simple counter based on -asarray()- that drops a variable once its counter reaches zero. Thus, it can be used for simple garbage collection, when trying to be careful with memory usage.

Example usage

sysuse auto

gc new
gc add price gear
gc add turn price trunk price
gc remove trunk price
gc report

sysuse auto, clear
gc new
gc add _all
gc add price turn
gc remove _all
gc report

Installation

With Stata 13+, type:

cap ado uninstall gc
net install gc, from(https://github.com/sergiocorreia/gc/raw/master/source/)

For older versions, first download and extract the zip file, and then run

ado uninstall gc
net install gc, from(SOME_FOLDER)

Where SOME_FOLDER is the folder that contains the stata.toc and related files.

About

Garbage Collection for Stata variables (programmer command)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors