3 ms·
thanks for pointing out! I tried the borrowing trick from the previous segment, was pretty obvious, but for some reason failed as could not avoid at least one c
by zokrezyl 9mo ago
thanks for pointing out! I tried the borrowing trick from the previous segment, was pretty obvious, but for some reason failed as could not avoid at least one conditinonal... will try again.
- zokrezyl 9mo agoFor my problem describe under the link above the suggestions above eliminate indeed the branches, but same time the extra instructions slow down the same as my initial branches. Meaning, detecting newlines would work almost 100% of memory throughput, but detecting first non-space reduces the speed to bit above 50% of bandwith https://gist.github.com/zokrezyl/8574bf5d40a6efae28c9569a8d692a61 https://gist.github.com/zokrezyl/8574bf5d40a6efae28c9569a8d6...