{"id":13514905,"url":"https://github.com/knapply/rcppsimdgeojson","last_synced_at":"2026-06-01T08:31:54.413Z","repository":{"id":105873521,"uuid":"307219899","full_name":"knapply/rcppsimdgeojson","owner":"knapply","description":"(aspirationally) blazing fast rcpp(simdjson) routines for GeoJSON","archived":false,"fork":false,"pushed_at":"2020-10-31T17:16:53.000Z","size":87,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-05T14:28:31.598Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/knapply.png","metadata":{"files":{"readme":"README.Rmd","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-26T00:15:14.000Z","updated_at":"2020-10-31T17:16:56.000Z","dependencies_parsed_at":null,"dependency_job_id":"2e854dd8-9a9f-4f80-a0fd-664616f59236","html_url":"https://github.com/knapply/rcppsimdgeojson","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/knapply/rcppsimdgeojson","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knapply%2Frcppsimdgeojson","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knapply%2Frcppsimdgeojson/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knapply%2Frcppsimdgeojson/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knapply%2Frcppsimdgeojson/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/knapply","download_url":"https://codeload.github.com/knapply/rcppsimdgeojson/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/knapply%2Frcppsimdgeojson/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33767435,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-01T02:00:06.963Z","response_time":115,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-08-01T05:01:03.501Z","updated_at":"2026-06-01T08:31:54.391Z","avatar_url":"https://github.com/knapply.png","language":"C++","funding_links":[],"categories":["C++"],"sub_categories":[],"readme":"---\ntitle: \"`{rcppsimdgeojson}`\"\noutput:\n  github_document:\n    html_preview: true\n    toc: true\n    toc_depth: 5\n  html_document:\n    keep_md: yes\nalways_allow_html: yes\neditor_options: \n  chunk_output_type: console\n---\n\n\u003c!-- README.Rmd generates README.md. --\u003e\n\n```{r, echo=FALSE}\nknitr::opts_chunk$set(\n  # collapse = TRUE,\n  fig.align = \"center\",\n  comment = \"#\u003e\",\n  fig.path = \"man/figures/\",\n  # message = FALSE,\n  warning = FALSE\n)\n\noptions(width = 150)\n```\n\n\n\u003c!-- badges: start --\u003e\n[![GitHub last commit](https://img.shields.io/github/last-commit/knapply/rcppsimdgeojson.svg)](https://github.com/knapply/rcppsimdgeojson/commits/master)\n[![Lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)](https://www.tidyverse.org/lifecycle/#experimental)\n[![R build status](https://github.com/knapply/rcppsimdgeojson/workflows/R-CMD-check/badge.svg)](https://github.com/knapply/rcppsimdgeojson/actions?workflow=R-CMD-check)\n[![Codecov test coverage](https://codecov.io/gh/knapply/rcppsimdgeojson/branch/master/graph/badge.svg)](https://codecov.io/gh/knapply/rcppsimdgeojson?branch=master)\n[![License: GPL v3](https://img.shields.io/badge/License-GPLv3-blue.svg)](https://www.gnu.org/licenses/gpl-3.0)\n[![Depends-R](https://img.shields.io/badge/Depends-GNU_R \u003e= 4.0-blue.svg)](https://www.r-project.org/)\n[![Depends-C++](https://img.shields.io/badge/Depends-C++17-blue.svg)](https://en.cppreference.com/w/cpp/17)\n[![Depends-GCC](https://img.shields.io/badge/Depends-GCC \u003e= 7-red.svg)](https://gcc.gnu.org/)\n[![Depends-CLang](https://img.shields.io/badge/Depends-Clang \u003e= 7-red.svg)](https://clang.llvm.org/)\n[![Depends-RTools](https://img.shields.io/badge/Depends-RTools \u003e= 40-red.svg)](https://cran.r-project.org/bin/windows/Rtools/)\n\n\u003c!-- badges: end --\u003e\n\n___WIP: This is still not useful...___\n\n## Installation\n\n\n```{r, eval=FALSE}\nif (!requireNamespace(\"remotes\", quietly = TRUE)) install.packages(\"remotes\")\nremotes::install_github(\"knapply/rcppsimdgeojson\")\n```\n\n\n\n\n```{r}\ngeojson_files \u003c- list.files(system.file(\"geojsonexamples\", package = \"rcppsimdgeojson\"),\n                            recursive = TRUE, pattern = \"\\\\.geojson$\", full.names = TRUE)\ngeojson_files \u003c- geojson_files[!grepl(\"largeMixedTest\", geojson_files, fixed = TRUE)]\n\nnames(geojson_files) \u003c- basename(geojson_files)\n```\n\n\n## Conformance\n\n```{r}\nidentical_w_sf \u003c- vapply(\n  geojson_files, function(.file) {\n  identical(rcppsimdgeojson:::.fload_sfc(.file), sf::read_sf(.file)$geometry)\n  }, \n  logical(1L)\n)\n\nstopifnot(all(identical_w_sf))\nas.matrix(identical_w_sf)\n\nbig_geojson \u003c- path.expand(\"~/Downloads/bay_delta_89b.geojson\")\n\ntest \u003c- rcppsimdgeojson:::.fload_sfc(big_geojson)\ntarget \u003c- sf::read_sf(big_geojson)$geometry\nstopifnot(identical(test, target))\n\ntest\nplot(test)\n```\n\n\n## Benchmarking\n\n### `\u003csfc\u003e`\n\n\n#### Big File\n\n```{r}\nsprintf(\"%f MB\", file.size(big_geojson) * 1e-6)\n\nmicrobenchmark::microbenchmark(\n  rcppsimdgeojson = rcppsimdgeojson:::.fload_sfc(big_geojson),\n  geojsonsf = geojsonsf:::rcpp_read_sfc_file(big_geojson, mode = \"rb\",\n                                             flatten_geometries = FALSE)\n  ,\n  times = 5\n)\n```\n\n\n#### Tiny Files\n\n```{r}\nlapply(geojson_files, function(.file) {\n  microbenchmark::microbenchmark(\n    rcppsimdgeojson = rcppsimdgeojson:::.fload_sfc(.file),\n    geojsonsf = geojsonsf:::rcpp_read_sfc_file(.file, mode = \"rb\",\n                                               flatten_geometries = FALSE),\n    unit = \"relative\"\n  )\n})\n```\n\n\n\n#### Tiny Strings\n\n```{r}\ngeojson_strings \u003c- vapply(geojson_files, function(.file) {\n  readChar(.file, nchars = file.size(.file))\n}, character(1L))\n\n\nlapply(geojson_strings, function(.geojson) {\n  microbenchmark::microbenchmark(\n    rcppsimdgeojson = rcppsimdgeojson:::.fparse_sfc(.geojson),\n    geojsonsf = geojsonsf:::rcpp_geojson_to_sfc(.geojson, expand_geometries = FALSE),\n    unit = \"relative\"\n  )\n})\n```\n\n\n\n\n\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknapply%2Frcppsimdgeojson","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fknapply%2Frcppsimdgeojson","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fknapply%2Frcppsimdgeojson/lists"}