The underlying Fortran code (by Allan Miller) uses a branch-and-bound algorithm based on the original ideas by Furnival & Wilson (Technometrics, 1974). This rules out large chunks of model space based on the principal that removing variables from a model can only increase the residual sum of squares.
The implementation is also efficient, computing only the residual sum of squares for each model, and computing the QR decomposition of the predictors only once.