EN
We obtain, in terms of associated weights, natural criteria for compact embedding of weighted Banach spaces of holomorphic functions on a wide class of domains in the complex plane. Our study is based on a complete characterization of finite-dimensional weighted spaces and canonical weights for them. In particular, we show that for a domain whose complement is not a Painlevé null set each nontrivial space of holomorphic functions with O-growth condition is infinite-dimensional.