I'm not certain, but I think the current recommendation is a swap file, not a swap partition. A swap file can also be resized a lot easier. The main benefit is that it doesn't write to the same part of the disk constantly, so for SSDs in particular it extends the lifetime.