Cyril Zhang 71ec05a212 sort: Cache value of MB_CUR_MAX
Every usage of MB_CUR_MAX results in a call to __mb_cur_max.  This is
inefficient and redundant.  Caching the value of MB_CUR_MAX in a global
variable removes these calls and speeds up the runtime of sort.  For
numeric sorting, runtime is almost halved in some tests.

PR:		255551
PR:		255840
Reviewed by:	markj
MFC after:	1 week
Sponsored by:	The FreeBSD Foundation
Differential Revision:	https://reviews.freebsd.org/D30170
2021-05-13 09:33:19 -04:00
..
2021-05-13 09:33:19 -04:00
2021-05-13 09:33:19 -04:00
2020-09-08 15:01:49 +00:00
2019-12-11 17:37:53 +00:00
2021-05-13 09:33:19 -04:00
2021-05-13 09:33:19 -04:00
2021-05-13 09:33:19 -04:00