On Thursday, August 26, 2010 06:20:45 Frans Meulenbroeks wrote: > The original code was: > strcat ($1.buf, $2); > this is changed into > strcpy ($1.buf + $1.strlen, $2); > > As strcat needs to scan the string to find the end > and the string can become quite long this can take > quite some time. > Since we already have the len of the string we can > immediately go to the end of the string and strcpy there > > Gain increases with the length of the design but for a 2.4 MB svf > file the gain processing the data reduced by 30 % (from 5.3 to 3.6 > seconds on my system)
merged, thanks -mike
signature.asc
Description: This is a digitally signed message part.
------------------------------------------------------------------------------ This SF.net Dev2Dev email is sponsored by: Show off your parallel programming skills. Enter the Intel(R) Threading Challenge 2010. http://p.sf.net/sfu/intel-thread-sfd
_______________________________________________ UrJTAG-development mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/urjtag-development
