visualization-tool icon indicating copy to clipboard operation
visualization-tool copied to clipboard

Load locales dynamically

Open ptbrowne opened this issue 3 years ago • 0 comments

For initial loading performance, we should only load the locale we are interested in. Right now, all locales are loaded.

https://github.com/visualize-admin/visualization-tool/blob/5671fc624d9f6423400219e57eff83b7c43c5eb2/app/locales/locales.ts#L1

ptbrowne avatar Jun 02 '22 08:06 ptbrowne

I have the ESP32 running for months (with 1 ping each ~10 mins). The only restarts I had (just a few) were when there were issues with WiFi and it was trying too many times to reconnect ... but there I suspect something with WiFi stack, not with the ping. Probably it will be tough to debug what you say ...

adynis avatar Dec 13 '20 00:12 adynis

Well... i´m pinging every 15 secs, maybe you need more time. I´m runing the code from a task in core 1, maybe there is a bug while running in the other core than core 0. I´m gonna try to move it to the core 0 (in the main loop) and tell you the results.

aragornale avatar Dec 13 '20 03:12 aragornale

Moved to the first core... and testing. By the way... the reason cause i´ve moved the function is the long time it takes, so, i moved the function to the second idle core. I´ve seen the default timeout is 1sec. Is there any way to decrease it for example 200ms? tnxs

aragornale avatar Dec 13 '20 14:12 aragornale