I believe your asking yourself the wrong question. It should be how do I write better code ? Being faster (on the long term) can only be a side effect of resolving this part first...
How ? By deepening techniques :
- familiarity with the language - knowledge of good architecture (SOLID if your in OOP) - knowledge of the domain you're tackling with - balancing abstraction with implementation according to the weight of a problem - not overtesting
Yeah becoming faster takes time...