perf: write post-processed G-code without per-line copies to speed up export by up to 6% (#16167)

* perf: write post-processed G-code without a per-line copy

* perf: size the post-process line map from the first pass

* test: line ends of the exported G-code

* test: include the headers the line-ends test and gcode() helper use
This commit is contained in:
Kris Austin
2026-10-06 07:50:08 -03:00
committed by GitHub
parent d1afb1fed6
commit e098c933f0
5 changed files with 139 additions and 111 deletions
+3
View File
@@ -491,6 +491,9 @@ class Print;
static const std::string VFlush_End_Tag;
static const std::string External_Purge_Tag;
public:
// Size of the blocks the post-processing passes write the G-code in
static constexpr size_t Output_Block_Size = 65536;
// Orca: SKIPPABLE region tags, stored as static strings (the FLUSH idiom above) rather than
// a CustomETags/CustomTags array. Public so the emission sites (WipeTower / change_filament
// path) can reference them single-sourced.