Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Perl, Python, Ruby, PHP, C, C++, Lua, tcl, JavaScript and Java comparison.
For the C version, just changing strcat(gstr, str); to strcat(&gstr[lngth - str_len], str); cuts the execution time by 1/4 for the longest cases.
original: 471sec 4096kb
changed: 356sec 4096kb
There are no comments on this comment yet.
For the C version, just changing strcat(gstr, str); to strcat(&gstr[lngth - str_len], str); cuts the execution time by 1/4 for the longest cases.
original: 471sec 4096kb
changed: 356sec 4096kb