Landing: e47eccbe6d11

Project / Subsystem

gcc / cobol

Date

2026-09-21

Author

Robert Dubner

Commit

e47eccbe6d118023e4fe83bde14075729c40e030

Source

github

Perf win

Yes

Breaking

No

All attributes

project
gcc
subsystem
cobol
patch_id
—
commit_hash
e47eccbe6d118023e4fe83bde14075729c40e030
source_type
github
headline
cobol: Improve numeric-edited formatting speed by moving processing to compile time.
tldr
COBOL numeric-edited output formatting is faster by performing PICTURE clause processing at compile time instead of runtime.
author
Robert Dubner
outcome
committed
performance_win
true
breaking_change
false
series_id
—
series_parts
[]
tags
  • • cobol
  • • optimization
  • • performance
discussion_id_link
—
bugzilla_pr
—
date
2026-09-21T00:00:00.000Z

The performance of converting numerical strings to numeric-edited variables in GCC’s COBOL compiler has been significantly improved. This optimization is achieved by moving the processing of PICTURE clauses, which define the format of edited numeric output, from runtime execution to compile time. This reduces the overhead during program execution by pre-calculating and embedding formatting information directly into the compiled code.