The effect should only last for a short time, and dissipates shortly after you walk off the plane. It's easy to alleviate or avoid foot and ankle swelling during a flight, too. Wear loose clothes (like these insanely stylish sweatpants), drink plenty of water, and make an effort to walk around the cabin every hour.