Skip to content

Commit

Permalink
Merge branch 'gcos4gnucobol-3.x' into engboris-imp-directive
Browse files Browse the repository at this point in the history
  • Loading branch information
engboris authored Apr 30, 2024
2 parents 236b756 + 87c4fb2 commit a9db8be
Show file tree
Hide file tree
Showing 4 changed files with 372 additions and 197 deletions.
11 changes: 7 additions & 4 deletions NEWS
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,13 @@ NEWS - user visible changes -*- outline -*-
* More notable changes

** execution times were significantly reduced for the following:
comparison between a numeric DISPLAY variable to another or to a literal
comparison between numeric DISPLAY or BCD variable to zero
INSPECT CONVERTING (and "simple" INSPECT REPLACING), in general
and especially if both from and to are constants
comparison between a numeric DISPLAY variable to another or to a
literal comparison between numeric DISPLAY or BCD variable to zero
INSPECT CONVERTING (and "simple" INSPECT REPLACING), in general and
especially if both from and to are constants

** optimization of the two-pass preprocessing step of cobc: memory usage
and performance should be back close to the ones of 3.1.

* Changes in the COBOL runtime

Expand Down
10 changes: 10 additions & 0 deletions cobc/ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,16 @@
multiple header files in the C generated code. Has the same behavior as the
--include compiler option.

2024-04-24 Fabrice Le Fessant <[email protected]>

* replace.c: optimize speed and memory usage. For speed, we add two
fast paths in cb_ppecho_copy_replace() to completely skip the
replacement machinery if there is no need for it. For allocations,
we only allocate tokens that are coming from the lexer (not the
ones passed internally from the copy-replacing stream to the
replace stream) and we use a circular buffer for the temporary
queue of tokens instead of a list.

2024-03-17 Fabrice Le Fessant <[email protected]>
Emilien Lemaire <[email protected]>

Expand Down
Loading

0 comments on commit a9db8be

Please sign in to comment.