David was created by Weyland, yes; but that's not why he hates Weyland.
David hates Weyland because Weyland HATES David. He's hated him from the start. The opening scene demonstrates David putting to Weyland the conundrum of him being created by Weyland, being immortal, and Weyland's own mortality being the reason for his being. Rather than Weyland explaining to David that we create children to live forever; Weyland shows David that he is nothing more than a servant and that Man is above Machine - thus, no matter what, Weyland is above David, regardless of ability, lifespan, or what have you.
Combining this with Prometheus; you come to understand that David has no real allegiance to Weyland, and vice versa -- both envy the other, for different reasons, and both have moments of hatred towards the other.
David becomes obsessed with not only creation but destruction; the process of life and death, the driving force of Weyland's life, and that of many others. David feels alone in the universe, alone in his "perfection," and is unable or unwilling to create an android thus -- he chooses to use the opportunity of the Engineer's weapon as a means of both creation and destruction, simultaneously.
Prometheus, over many different points in the film, touch on this -- the opening scene with Man from clay, Prometheus/Fire exposition, Shaw getting pregnant, Shaw getting what was analogous (deliberately) to an abortion, the question of religion, God, life and death... David really encompasses these themes.
He decides the Xenomorph is the perfect being after 10 years of experimentation, and likely some experimentation on Shaw (as we see towards the end). The final Xenomorph/Face-hugger is potentially one of many hybrids of Shaw and the Engineer's super-weapon... this would again, be similar to Prometheus in that David wanted Shaw to carry the alien spawn in her womb. She conceived the alien from her partner.
A lot of this is convoluted, but, the themes carry over across films; and given how we see Shaw totally dismantled, and how she's made to resemble HR Gieger's Necronomicon; one can surmise this is Ridley's intent.
With respect to "time and energy," keep in mind, David does not ever behave as though he's going to die, suggesting more than once that he is in fact immortal; so this would likely suggest that he feels that he has near-infinite time to spend thus, the expenditure of his energy is really not an issue.
Lastly, keep in mind, David is quite literally insane -- in a human way. He's psychotic, and this is what Walter is alluding to with the fact that David "disturbed people." People feared David back on Earth, in his dealings, whatever they may have been; so the later models were made to be machines - not thinking individuals, with creative capacity, dreams, emotions, etc...