Precompute X and Y offsets before path loop.
Precache gcode_comments flag before path loop.
Move extrusion path gcode generation to C++ for speed.
Merge pull request #1911 from sapir/speed

Rewriting the extrusion path gcode generation in C++