FreeCAD: master 6e90d8e1

Author Committer Branch Timestamp Parent
Gabriel Wicke Gabriel Wicke master 2020-05-17 20:21:27 master ff0e556b
Changeset Path: LinuxCNC postprocessor scalability

- Do not show editor when gcode size exceeds 100kb. The poor editor
  widget cannot handle that much output, and will hang FreeCAD.
- Avoid quadratic behavior in output accumulator. While Python greater
  than 2.7 avoids quadratic behavior in string accumulators, this optimization
  is defeated when the string is forced to be materialized to contiguous
  memory, as was done by the `.trim()`. As a result, we got quadratic complexity,
  ensuring that large jobs would never successfully be post-processed.
mod - src/Mod/Path/PathScripts/post/linuxcnc_post.py Diff File