![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
On 12-jun-2006, at 13:31, Carsten Bormann wrote:
in your original question to the list, you didn't quite make clear that your question was with respect to BGP-style transfer of large- scale routing information.
Right now, you seem to focus on decoding performance. How much of the CPU time spent for BGP is decoding?
Does the CPU time spent for the entirety of BGP even matter*? If yes, can a good data structure/encoding help with the *overall* problem?
The results from your test programs are not at all surprising.
Of course, a hand-coded loop where all data already is in the right form (data type, byte order, number of bits), no decisions need to be made, and you even know the number of data items beforehand, is going to be faster than calling the generic, pretty much neglected, parameterized, tired library routine fscanf that doesn't get much use outside textbooks.
What this example shows nicely is that performance issues are non- trivial, and, yes, you do want to run measurements, but at the system level and not at the level of "test cases" that have little or no relationship to the performance of the real system.
If you really care about the performance of text-based protocols, you cannot ignore modern tools like Ragel.
Don't know it.
If, having used them, you still manage to find the text processing overhead in your profiling data, I'd like to hear from you.
But I guess this discussion can go on forever...
_______________________________________________ Ietf mailing list Ietf at ietf.org https://www1.ietf.org/mailman/listinfo/ietf
Note Well: Messages sent to this mailing list are the opinions of the senders and do not imply endorsement by the IETF.