There’s been an interesting exchange of thoughts about swap partition, zram and swap file, which may be useful: