Driving style is the biggest single factor.
"When to shift" seems to be one of the main things that people who are new to efficient driving worry about, when they should instead be focusing on conserving momentum, reading traffic, and minimizing the use of the brakes.
Have you reviewed the list of
100+ driving tips to see what other techniques might apply to your situation?