On Mon, Aug 13, 2012 at 8:54 AM, John Reiser <jrei...@bitwagon.com> wrote:

>
> In the case at hand, we are interested in string operations, not floating
> point.
> Suppose that stpncpy contributes 0.25% (1/400) of the normal running time.
>  Then
> instruction-by-instruction emulation of stpncpy by memcheck is about 20 *
> 0.25% = 5%
> of the normal running time.


Yes, for the (approximately) one application on the planet for which (the
non-standard) stpncpy consumes 1/400 of the running time, you would be
right.  If, that is, the rest of the application were not also running 20
times slower.

Also, note that the same "argument" applies to every function in the
standard library, leading to my earlier modest proposal to add interceptors
for absolutely everything.

Since I am starting to repeat myself, I guess I am done with this
discussion.  Feel free to have the last word.

 - Pat
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Valgrind-users mailing list
Valgrind-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/valgrind-users

Reply via email to