{"id":19528981,"url":"https://github.com/kayess/cpp-designing4performance","last_synced_at":"2026-05-12T13:39:53.355Z","repository":{"id":142377512,"uuid":"154236228","full_name":"KayEss/cpp-designing4performance","owner":"KayEss","description":"Slides and code for my talk at Pacific++ in 2018","archived":false,"fork":false,"pushed_at":"2018-10-23T10:03:04.000Z","size":698,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-08T16:07:51.706Z","etag":null,"topics":["conference-talk","cpp17","example-code","pacificplusplus","pgasio","postgres"],"latest_commit_sha":null,"homepage":null,"language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/KayEss.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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":"2018-10-23T00:36:11.000Z","updated_at":"2022-11-20T14:52:17.000Z","dependencies_parsed_at":null,"dependency_job_id":"d6ad6d63-7652-4c13-8588-0a70fc5d8d08","html_url":"https://github.com/KayEss/cpp-designing4performance","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KayEss%2Fcpp-designing4performance","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KayEss%2Fcpp-designing4performance/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KayEss%2Fcpp-designing4performance/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/KayEss%2Fcpp-designing4performance/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/KayEss","download_url":"https://codeload.github.com/KayEss/cpp-designing4performance/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240783113,"owners_count":19856773,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["conference-talk","cpp17","example-code","pacificplusplus","pgasio","postgres"],"created_at":"2024-11-11T01:21:17.414Z","updated_at":"2026-05-12T13:39:48.335Z","avatar_url":"https://github.com/KayEss.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Designing APIs For Performance\n\nThis repository contains the code, scripts and slides for the talk at Pacific++ 2018.\n\nThe actual code that was run is in the `real` folder, and the code for the slides is in the `slides` folder.\n\n\n## Building\n\nNormal cmake rules apply:\n\n```bash\ngit clone --recursive git@github.com:KayEss/cpp-designing4performance.git\nmkdir cpp-designing4performance/build.tmp; cd cpp-designing4performance/build.tmp\nccmake .. -DCMAKE_BUILD_TYPE=Release -G Ninja\nninja\n```\n\n\n## The data\n\nFirst you should get Postgres configured so that ident authentication works. You can check if this is the case or not by just typing `psql` and seeing if you can access the server without any further options.\n\nOn an Ubuntu machine something like the following should work (a superuser role):\n\n```bash\nsudo -u postgres createuser -ls $LOGNAME\nsudo -u postgres createdb -o $LOGNAME $LOGNAME\npsql\n```\n\nThe command lines can be found in the slides. They assume the build directory is the current working directory.\n\n\n### Movies\n\nThe film list is from the [daily list export](https://developers.themoviedb.org/3/getting-started/daily-file-exports) from [The Movie DB](https://www.themoviedb.org/). You'll need to fix up the file name in [movies/makedata.py](./movies/makedata.py). You'll also need to install the Python packages outlined in [movies/setup.pip](./movies/setup.pip). Running `pip install -r setup.pip` from that directory should suffice (assumes Python 3 is the default).\n\n\n### `pgbench`\n\nUse pgbench to create the table and data for the `pgbench_accounts`. For the talk the following was used:\n\n```bash\npgbench -i -s 20\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayess%2Fcpp-designing4performance","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkayess%2Fcpp-designing4performance","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkayess%2Fcpp-designing4performance/lists"}