ramdisk? It wouldn't be the first time I'd extract a .deb to tmpfs to resolve a temporary issue.
Don't think I've ever encountered a critical issue where "add more swap" would be a serious disaster recovery solution. I've certainly seen situations where swap was nearing 100% full, and although I would have minutes off wall-clock time to formulate a strategy, those minutes have never allowed me to input more than a handful of characters or so.
What if the solution required some amount of free space? (eg. installing a package or swap)