cobolrt performance: benchmark vs COBOL batch volumes, then add proven fast paths

Open
#4,717 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
18/100
Issue type
Refactor
Clarity
Mostly clear
Activity status
Active
Tech stack
python
Domain
performance

Research direction

Start by reading the cobolrt decimal arithmetic path that the issue calls the hot rule, and find where every operation builds a BigDecimal. Build the benchmark harness first, using the CardDemo batch, POSTTRAN, intcalc and mortgage ports the issue lists, and record baseline throughput and allocations. A fast path counts as done only when the unit vectors, the det sweep and the cobc differential fuzz show 0 diffs, and the A/B fuzz between fast and slow paths agrees.

Written by the indexing model from the issue text.

Description

enhancement legacy-modernization priority: medium

What. Mainframe batch jobs process huge volumes. Exact decimal arithmetic with BigDecimal for every operation may be slow.

  1. Benchmark: representative batch ports (CardDemo batch, POSTTRAN, intcalc, mortgage) at realistic record counts. Measure throughput, allocations, and the hot rules (JMH where useful).
  2. Fast paths: e.g. long arithmetic when the digits fit, precomputed codecs, fewer allocations. Each fast path must be proven identical: unit vectors, full det sweep, and the differential fuzz against cobc gives 0 diffs, with an A/B fuzz between fast and slow paths.

Acceptance.

  • Benchmark harness committed, with baseline numbers.
  • At least the top hot rule has a proven fast path.
  • Before/after numbers.
  • No verdict change.

Part of the cobolrt-as-a-product epic (linked from the epic). Owner-approved direction, 2026-10-08.

🤖 Generated with Claude Code

Dominant language
Python
Stars
57
Forks
11
Avg merge
1h 35m
Merged PRs (30d)
975

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from squid-protocol/gitgalaxy

All issues in squid-protocol/gitgalaxy

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.