You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
**Optimise iteration and `indexOf` operation**
The regular `[]` operator and `valueAt` methods include range checks which are costly inside a loop.
Adding `unsafe` methods skips these checks.
**Improve Vector search for char* argument**
The `indexOf` method has been specialised for `char*` arguments so that `strlen()` only needs to be called once. Previously it was called on every loop iteration.
**Provide base `==` operator which does binary comparison**
This allows easy searching by value (object content).
**Rationalise string comparison methods**
FlashStrings have three `equals` overloads for `char*`, `String` and `FlashString` arguments.
We also require three `equalsignorecase` equivalents and appropriate `operator==` implementations.
By adding an `ignoreCase` parameter to all three `equals` methods we can simplify code.
**Other improvements**
- Use const references instead of copy
- Move copy/invalidate operations to constructors
- Use constexpr where possible for method return values
- Move `printElement(Print, char)` specialization into source file
- Move `read` method out of header
- Add github workflow
- Put strings in flash
Authored-by: mikee47 <[email protected]>
0 commit comments