|
From: Luca T. <no...@gi...> - 2026-09-02 00:38:11
|
Branch: refs/heads/master Home: https://github.com/LinuxCNC/linuxcnc Commit: e0a4bb26f63f6f807ae6832de5b78c42ed35de55 https://github.com/LinuxCNC/linuxcnc/commit/e0a4bb26f63f6f807ae6832de5b78c42ed35de55 Author: Alexey Presnyakov <309...@us...> Date: 2026-08-31 (Mon, 31 Aug 2026) Changed paths: M src/emc/rs274ngc/interp_read.cc Log Message: ----------- rs274ngc: parse numbers with std::from_chars read_real_number built a std::string and a std::stringstream for every number in a program, and read_integer_unsigned handed the digits it had already delimited to sscanf("%d"). std::from_chars needs neither, and is locale-independent where the stream was not. Accepted syntax, parsed values and both error messages are unchanged, except that a magnitude too small for a double, and a line number too large for an int, are now parse errors. Parsing a 13.7M line program is 2.1x faster. Commit: 10ca5afdb599878193562d284f0dd553542ec614 https://github.com/LinuxCNC/linuxcnc/commit/10ca5afdb599878193562d284f0dd553542ec614 Author: Luca Toniolo <107...@us...> Date: 2026-09-01 (Tue, 01 Sep 2026) Changed paths: M src/emc/rs274ngc/interp_read.cc Log Message: ----------- Merge pull request #4491 from alex-pres/pr-interp-speedup-number-parse optimization: rs274ngc: parse numbers with std::from_chars Compare: https://github.com/LinuxCNC/linuxcnc/compare/7d381974df56...10ca5afdb599 To unsubscribe from these emails, change your notification settings at https://github.com/LinuxCNC/linuxcnc/settings/notifications |