Achieving Energy Efficiency On Networking Systems With Optimization Algorithms And Compressed Data Structures