Justin Hibbits 6260bfb087 powerpc: Optimize copyinstr() to avoid repeatedly mapping user strings
Currently copyinstr() uses fubyte() to read each byte from userspace.
However, this means that for each byte, it calls pmap_map_user_ptr() to
map the string into memory.  This is needlessly wasteful, since the
string will rarely ever cross a segment boundary.  Instead, map a
segment at a time, and copy as much from that segment as possible at a
time.

Measured with the HPT pmap on powerpc64, this saves roughly 8% time on
buildkernel, and 5% on buildworld, in wallclock time.
2020-12-30 23:45:35 +01:00
..
2020-12-30 16:11:02 +00:00
2020-12-27 12:57:27 +02:00
2020-12-30 16:11:02 +00:00
2020-12-23 14:37:05 -04:00
2020-12-23 15:40:14 -04:00
2020-09-17 22:29:38 +00:00
2020-11-04 12:07:33 +00:00
2020-12-17 18:52:04 +00:00