diff options
| author | Geremia Taglialatela <[email protected]> | 2023-06-03 20:20:23 +0200 |
|---|---|---|
| committer | Geremia Taglialatela <[email protected]> | 2023-06-03 20:20:23 +0200 |
| commit | 32e81f08a619291394e9eaacb42a2051535b2fd1 (patch) | |
| tree | cc616c1da8153302eebade301d1a3f7dda775725 /examples | |
| parent | ad87c51bf8c8f59a36514bb95dc6d3a582c6b2fd (diff) | |
| download | caxlsx-32e81f08a619291394e9eaacb42a2051535b2fd1.tar.gz caxlsx-32e81f08a619291394e9eaacb42a2051535b2fd1.zip | |
Avoid unnecessary calls to `parse_options`
`Cell#initialize` is one of the most used methods in the library, so
a small improvement here will make a lot of difference on the overall
performance.
The impact of this change is negligible when `options` has elements
but is substantial when it is empty.
```
Comparison (empty options):
parse unless: 11636650.6 i/s
parse: 8109825.4 i/s - 1.43x (± 0.00) slower
Comparison (1 option):
parse: 3548037.5 i/s
parse unless: 3459029.7 i/s - same-ish: difference falls within error
```
Diffstat (limited to 'examples')
0 files changed, 0 insertions, 0 deletions
