The compact city, as a sustainable concept, is intended to augment the efficiency of urban function. However, previous studies have concentrated more on morphology than on structure. The present study focuses on urban structural elements, i.e., urban hotspots consisting of high-density and high-intensity socioeconomic zones, and explores the economic performance associated with their spatial structure. We use nighttime luminosity (NTL) data and the Loubar method to identify and extract the hotspot and ultimately draw two conclusions. First, with population increasing, the hotspot number scales sublinearly with an exponent of approximately 0.50~0.55, regardless of the location in China, the EU or the US, while the intersect values are totally different, which is mainly due to different economic developmental level. Secondly, we demonstrate that the compactness of hotspots imposes an inverted U-shaped influence on economic growth, which implies that an optimal compactness coefficient does exist. These findings are helpful for urban planning.