Skip to content

Conversation

@e-kotov
Copy link
Member

@e-kotov e-kotov commented Nov 14, 2024

Hi @JohnPalmer , I have replaced the jsonlite::fromJSON() with substantially faster RcppSimdJson::fload() (see https://github.com/eddelbuettel/rcppsimdjson ) to speed up the mosquitoR::get_malert_data(). I have not measured, but it feels 2-3 times faster and will get more noticeable with every additional year of data.

One caveat, is that the flattening strategy of RcppSimdJson::fload() is different from jsonlite::fromJSON(), which results in a slightly different data structure of the output tibble. I don't know if this change would break any of the existing workflows.

@e-kotov
Copy link
Member Author

e-kotov commented Nov 18, 2024

I will investigate the failing tests in a few days.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant