Skip to content

Conversation

@conradludgate
Copy link

Fixes #487.

Please review each commit separately.

  1. Introduces CStr and CString support which allows skipping any allocation
  2. A slight refactor to perform type checking early and by ref
  3. Add an abstraction for string serialization. With String, re-use the allocation if possible.

Copy link
Collaborator

@ahl ahl left a comment

Choose a reason for hiding this comment

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

We'll take the C-string change; I don't think we're interested in the rest.

Comment on lines +85 to +86

/// Avoid expensive string allocation with cstring support
Copy link
Collaborator

Choose a reason for hiding this comment

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

Native C strings are also supported and don't require any additional allocation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Support CStr

2 participants