Instead of mapping major modes to file size thresholds, it maps file regexps (like auto-mode-alist) since the major mode cannot be known before set-auto-mode is called (in after-find-file).