Skip to content

0.1.5

Choose a tag to compare

@astral-releases-bot astral-releases-bot released this 14 Oct 16:29
Immutable release. Only release title and notes can be modified.
e5a4571

Released on 2026-10-14.

Serc 0.1.5 improves compilation performance and reduces memory use when
compiling for Python 3.12.

Performance

  • Speed up -O and -OO compilation when the syntax tree needs no changes
    (#1275; #1275)
  • Speed up compilation of functions with many sequential try/except blocks
    on Python 3.12 (#1277;
    #1277)
  • Speed up compilation of mapping patterns with many captures on Python 3.14 and
    3.15 (#1284; #1284)
  • Speed up compilation of functions with many async context managers
    (#1281; #1281)
  • Reduce source-validation overhead when targeting Python 3.12 and 3.13
    (#1279; #1279)
  • Reduce memory use when compiling for Python 3.12 (#1280;
    #1280)
  • Reduce code-object construction and copying overhead (#1262;
    #1262) (#1263;
    #1263) (#1265;
    #1265)
  • Reduce scope-analysis and closure-lowering overhead (#1260;
    #1260) (#1261;
    #1261)
  • Reduce allocations during control-flow analysis (#1273;
    #1273)
  • Reduce assembler overhead for jumps, source locations, and instruction
    processing (#1268; #1268)
    (#1269; #1269)
    (#1266; #1266)
    (#1267; #1267)
    (#1270; #1270)
    (#1258; #1258)
  • Reduce marshal serialization work (#1264;
    #1264)
  • Reduce constant-folding overhead (#1272;
    #1272)