To answer this question, we first need to consider what is needed to sustain people in space. If we assume that we can't limit our crew to keto eaters, then (according to a presentation by Bryce Meyer given in the Space Settlement session of the International Space Development Conference in 2023) some examples of ideal foods for space travel will include:
- Bell peppers
- Rice
- Vegan, min processing (e.g. roasting peanuts, etc.)
- Vegan, heavy processing but no peanuts (e.g. includes fermentation)
- Vegan, processed foods and peanuts
- Seafood proteins (kosher, non-kosher, etc.)
- Insect proteins
- Birds (kosher, non-kosher, etc.)
- Rabbits
These plants and animals reproduce quickly, which is good for efficiency. On the other hand, almonds, cashews, pecans, and larger livestock do not reproduce as quickly, and are therefore examples of foods that would be inefficient - at least in the short term.
Plants in space provide not only food, but also oxygen generation, carbon dioxide removal, and support mental health. Duckweed, for example, can even be used for purifying water. When determining efficiency, it's advisable to consider all of the ways plants are beneficial when selecting the right mix of flora for a base. Multi-purpose plants may be more efficient overall than plants that are very good at doing just one thing.
The resiliency of your ecosystem is also important. For example, algae are size-efficient due to doubling time and photobioreactor size; however, the tank may be more susceptible to failure than a robust plant-based crop. (Note: This scenario was used as a plot device in the 2021 Movie Stowaway.)
On Mars, it may be more efficient to grow plants in lava tubes under artificial lighting than to use greenhouses, even after the cost and efficiencies of solar panels and LEDs are factored in. But, in space, crop selections may be influenced by the plant's susceptibility to oxidative stress induced by space radiation (Oxidative stress is defined as excess production of reactive oxygen species (ROS) relative to antioxidant defense.)
There are lots of factors that go into engineering a biosphere and there is lots of active research in this exciting field. Many researchers have theories on what the best solutions might be, and several experiments are underway at universities, such as the University of Arizona, to try to verify these theories. There are even some startups, such as InterstellarLab, that are attempting to commercialize solutions to these kinds of problems.
(Note: The author is not affiliated with UofA or InterstellarLab.)