summary refs log tree commit diff stats
path: root/tests/js/tclosures.nim
diff options
context:
space:
mode:
authorlit <litlighilit@foxmail.com>2024-07-02 02:47:08 +0800
committerGitHub <noreply@github.com>2024-07-01 20:47:08 +0200
commita557e5a341edcba90a08b6bc07d1dd701ed29c81 (patch)
treebcab7c799362b9b66f6f83d6166632094e48d74a /tests/js/tclosures.nim
parent27abcdd57f43fa905153f38afc7b10b990d789c9 (diff)
downloadNim-a557e5a341edcba90a08b6bc07d1dd701ed29c81.tar.gz
refine: strmisc.expandTabs better code structure (#23783)
After this pr, for a string with just 20 length and 6 `'\t'`, the time reduces by about 1.5%[^t].

Also, the code is clearer than the previous at some places.


[^t]: Generally speaking, this rate increases with length. I may test
for longer string later.
Diffstat (limited to 'tests/js/tclosures.nim')
0 files changed, 0 insertions, 0 deletions
='n108' href='#n108'>108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174