Altera_Forum
Honored Contributor
20 years agoLWIP question regarding speed optimization
when fooling around with the performance counter inside the LWIP checksum routines, i discovered that in the LWIP_checksum routine, the actual making of the checksum is 10% of the load, the reaming 90% is cedited to the return stament at the end, totalling over 50000 clock cycles for returning a value...
does returning the value really take this long? i dont understand this, if this is correct then using HW to do the checksumming would give me less then 10% increase (i cant go from 15 clock cycles to 0 for the checksum operation after all, it will still be 5 cycles or so) so where do those 50000 cycles go every checksum? when my webserver is outputting data then 100% of the cpu load is in the LWIP_Checksum routine, 10 on the calculations, 90 on the return does anyone have a clue?