#30: realize range feature in optimize=size mode.