diff options
| author | tivrfoa <lescoutinhovr@gmail.com> | 2024-02-01 07:49:47 -0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-02-01 11:49:47 +0100 |
| commit | fdd539e1f950bae64829036764c15869a00cd475 (patch) | |
| tree | b90406301425c0bb44de25767db450d04438f33c /prepare_plevart.sh | |
| parent | e7c92094bd1315115a38b8ddb1cec239d252f9ec (diff) | |
Exit earlier from loop when a new Result is created (#668)
* Exit earlier from loop when a new Result is created
* 3) Make a cache of long[] name to String, to avoid `ByteBuffer.allocate`
* and creating new UTF-8 strings. I didn't profile, so it's just a guess
* that this map will be a bit faster. Although it's outside the main loop, so
* not a big difference ...;
* 4) Exit earlier from loop if a new entry was created.
* revert: Remove cache to city name
* As I was not able to make it faster... make it slower
As I was not able to make it faster ... so I'll make it slower,
because my current solution should *not* stay at the top, as it added
basically nothing.
Diffstat (limited to 'prepare_plevart.sh')
0 files changed, 0 insertions, 0 deletions
