Local diameters of compact sets