Commit 74da2c4
util: improve getStringWidth performance
This makes sure the common path does not normalize the input string.
It's only required for characters that are outside of the ASCII range.
Signed-off-by: Ruben Bridgewater <ruben@bridgewater.de>
PR-URL: #33674
Reviewed-By: Anna Henningsen <anna@addaleax.net>
Reviewed-By: James M Snell <jasnell@gmail.com>
Reviewed-By: Tobias Nießen <tniessen@tnie.de>
Reviewed-By: Anto Aravinth <anto.aravinth.cse@gmail.com>1 parent 39894f8 commit 74da2c4
1 file changed
+6
-10
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1995 | 1995 | | |
1996 | 1996 | | |
1997 | 1997 | | |
1998 | | - | |
1999 | | - | |
2000 | | - | |
2001 | | - | |
2002 | | - | |
2003 | | - | |
2004 | | - | |
2005 | 1998 | | |
2006 | 1999 | | |
2007 | 2000 | | |
| |||
2012 | 2005 | | |
2013 | 2006 | | |
2014 | 2007 | | |
2015 | | - | |
| 2008 | + | |
| 2009 | + | |
2016 | 2010 | | |
2017 | 2011 | | |
2018 | 2012 | | |
2019 | 2013 | | |
2020 | 2014 | | |
2021 | | - | |
| 2015 | + | |
2022 | 2016 | | |
2023 | 2017 | | |
2024 | 2018 | | |
| |||
2032 | 2026 | | |
2033 | 2027 | | |
2034 | 2028 | | |
2035 | | - | |
| 2029 | + | |
| 2030 | + | |
| 2031 | + | |
2036 | 2032 | | |
2037 | 2033 | | |
2038 | 2034 | | |
| |||
0 commit comments