-
-
Notifications
You must be signed in to change notification settings - Fork 134
Commit 184dd3e
committed
Remove strlen in calls like String::concat(s, strlen(s))
Instead of calling strlen in a dozen places, instead just call
String::concat(s), which will then call strlen. This shrinks the code
size of these calls significantly, the StringAppendOperator example on
the Arduino Uno shrinks by 72 bytes. This change does incur a slight
runtime cost, because there is one extra function call.1 parent d5790a0 commit 184dd3e
1 file changed
+8
-8
lines changedOriginal file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
307 | 307 |
| |
308 | 308 |
| |
309 | 309 |
| |
310 | - | ||
310 | + | ||
311 | 311 |
| |
312 | 312 |
| |
313 | 313 |
| |
314 | 314 |
| |
315 | 315 |
| |
316 | 316 |
| |
317 | - | ||
317 | + | ||
318 | 318 |
| |
319 | 319 |
| |
320 | 320 |
| |
321 | 321 |
| |
322 | 322 |
| |
323 | 323 |
| |
324 | - | ||
324 | + | ||
325 | 325 |
| |
326 | 326 |
| |
327 | 327 |
| |
328 | 328 |
| |
329 | 329 |
| |
330 | 330 |
| |
331 | - | ||
331 | + | ||
332 | 332 |
| |
333 | 333 |
| |
334 | 334 |
| |
335 | 335 |
| |
336 | 336 |
| |
337 | 337 |
| |
338 | - | ||
338 | + | ||
339 | 339 |
| |
340 | 340 |
| |
341 | 341 |
| |
342 | 342 |
| |
343 | 343 |
| |
344 | 344 |
| |
345 | - | ||
345 | + | ||
346 | 346 |
| |
347 | 347 |
| |
348 | 348 |
| |
349 | 349 |
| |
350 | 350 |
| |
351 | 351 |
| |
352 | - | ||
352 | + | ||
353 | 353 |
| |
354 | 354 |
| |
355 | 355 |
| |
| |||
378 | 378 |
| |
379 | 379 |
| |
380 | 380 |
| |
381 | - | ||
381 | + | ||
382 | 382 |
| |
383 | 383 |
| |
384 | 384 |
| |
|
0 commit comments