jonas-schievink/xml-rpc-rs

Investigate a Zero-Copy interface

开放

#10 创建于 2016年10月16日

 (1 条评论) (0 个反应) (0 位负责人)Rust (21 个派生)github user discovery
enhancementhelp wanted

仓库指标

星标
 (27 个星标)
PR 合并指标
 (30 天内没有已合并 PR)

描述

Currently, this crate forces the use of many allocations.

It should be possible to make Value use Cow internally, as well as making Request store an &'a [Value] for the arguments (note that the name of the called method is already a &'a str). This makes adding single arguments impossible, but that's not really a problem since the user can just use a Vec themselves.

One thing to note is that this will probably make Value a bit clunkier to use: Cow is hard to match on. Also, I've noticed that implementing this causes a cyclic trait dependency.

贡献者指南