[LLVMdev] Extending AsmPrinter
Chris Lattner
sabre at nondot.org
Mon Aug 20 14:18:22 PDT 2007
On Mon, 20 Aug 2007, David Greene wrote:
>>> what you're
>>> getting at here. All buffering necessarily has some overhead.
>>
>> Buffering has overhead from copying data around. It doesn't matter
>> whether you do in by using stdio buffering or by building your own
>> buffers to avoid virtual method overhead.
>
> Sure. But that has nothing to do with iostreams _per_se_.
I'm aware of that.
> Now, if I were to redesign iostreams, I would try to turn that dynamic
> polymorphism into static polymorphism. I think the ability to switch
> streambufs at runtime is hardly ever used, so we really don't need virtual
> calls.
Right.
Overall, go ahead and design your solution. Instead of making abstract
arguments we can evaluate the final product and see if it is suitable for
wider-spread use in LLVM.
-Chris
--
http://nondot.org/sabre/
http://llvm.org/
More information about the llvm-dev
mailing list