Landing: d6108a547222
Project / Subsystem
gcc / cobol
Date
2026-09-17
Author
Robert Dubner
Commit
d6108a5472226faf754a7621d9ed5542b374db8c
Source
github
Perf win
Yes
Breaking
No
All attributes
- project
- gcc
- subsystem
- cobol
- patch_id
- —
- commit_hash
- d6108a5472226faf754a7621d9ed5542b374db8c
- source_type
- github
- headline
- Refactor numeric-editing formatting for speed.
- tldr
- Significant speedup for Cobol numeric-editing PICTURE string formatting.
- author
- Robert Dubner
- outcome
- committed
- performance_win
- true
- breaking_change
- false
- series_id
- —
- series_parts
- []
- tags
-
- • cobol
- • performance
- • compiler
- discussion_id_link
- —
- bugzilla_pr
- —
- date
- 2026-09-17T00:00:00.000Z
The Cobol compiler’s routine for formatting numeric strings according to PICTURE clauses has been refactored for performance. A new specific routine for ASCII strings eliminates costly encoding conversions. The underlying conversion logic has also been optimized, resulting in an approximately eight-fold speed improvement for this operation. Changes include modifications in genapi.cc, move.cc, parse.y, symbols.cc, and util.cc, along with updates to libgcobol.