Skip to content
This repository has been archived by the owner on Jan 8, 2024. It is now read-only.

Changes to sexp.rs's handling of termlist and clone optimisations #213

Merged
merged 11 commits into from
Aug 15, 2023

Conversation

matt-o-how
Copy link

This branch simplifies the parsing of termlist in pre-form assembling, and replaces calls to .clone() on Rc objects with the Rc::clone() call which is more memory efficient.

@prozacchiwawa
Copy link

The argument people make with using the associated function form of Rc::clone isn't that it's cheaper (it's actually the same as cloning an Rc), but that it makes clear that it's just an Rc clone (not cloning the object), which I can be on board with.

Copy link

@prozacchiwawa prozacchiwawa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks.

@prozacchiwawa prozacchiwawa merged commit 2b64a17 into base Aug 15, 2023
25 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants