This needs to be done inside the library, rather than be left up to the user, for performance reasons:
File based stream interface keeps a small buffer that it copies bytes into/ writes bytes out of. If we are streaming from a buffer, then there is no need for this small buffer - we can use the input buffer itself for this, and save a memcpy.
This should reduce some of the memory traffic.
Comment #1
Posted on Jun 8, 2015 by Quick LionHI Aaron,
If I'm not mistaken, you've got an implementation in one of your GitHub branch ? So do I but only for input stream at the moment.
I'm waiting for a full transition to GitHub to do more on this.
Comment #2
Posted on Jun 9, 2015 by Happy WombatYes, I have an implementation. Let's discuss further when Github transition is complete.
Aaron
Status: Accepted
Labels:
Type-Enhancement
Priority-Medium