Home GnuPG
Diffusion GnuPG 64a58e23c38d

gpgscm: Mark cells requiring finalization.
64a58e23c38dUnpublished

Unpublished Commit ยท Learn More

Not On Permanent Ref: This commit is not an ancestor of any permanent ref.

Description

gpgscm: Mark cells requiring finalization.

* tests/gpgscm/scheme.c (T_FINALIZE): New macro.
(mk_port): Use the new macro.
(mk_foreign_object): Likewise.
(mk_counted_string): Likewise.
(mk_empty_string): Likewise.
(gc): Only call 'finalize_cell' for cells with the new flag.

This speeds up the sweep phase of the garbage collector considerably
because most cells do not require finalization.

  • Signed-off-by: Justus Winter <justus@g10code.com>

Details

Provenance
justusAuthored on Nov 15 2016, 11:03 AM
Parents
rG93cc322ac06d: gpgscm: Recover more cells.
Branches
Unknown
Tags
Unknown

Event Timeline

Justus Winter <justus@g10code.com> committed rG64a58e23c38d: gpgscm: Mark cells requiring finalization. (authored by Justus Winter <justus@g10code.com>).Nov 15 2016, 11:10 AM