From: David Disseldorp <ddiss@suse.de>
To: Casey Bodley <cbodley@redhat.com>
Cc: ceph-devel@vger.kernel.org
Subject: Re: memcpy() avoidance using decode(bufferlist)
Date: Mon, 25 Apr 2016 00:56:55 +0200 [thread overview]
Message-ID: <20160425005655.022ff812@echidna.suse.de> (raw)
In-Reply-To: <571A67DB.6010903@redhat.com>
Thanks for the tips Casey!
On Fri, 22 Apr 2016 14:05:15 -0400, Casey Bodley wrote:
> This append_buffer is not
> currently exposed by the interface, but if there was a way to provide
> your own buffer::ptr from buffer::create_static(), you could
> hypothetically use that to avoid the copy.
That's a pity. In that case, I guess I'll keep the extra memcpy until
there's an API to directly provide the bufferlist destination buffer
here.
Cheers, David
prev parent reply other threads:[~2016-04-24 22:56 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-04-22 13:53 memcpy() avoidance using decode(bufferlist) David Disseldorp
2016-04-22 18:05 ` Casey Bodley
2016-04-24 22:56 ` David Disseldorp [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20160425005655.022ff812@echidna.suse.de \
--to=ddiss@suse.de \
--cc=cbodley@redhat.com \
--cc=ceph-devel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.