Title: astutils.h: reserve `std::vector` space in `visitAstNodes()` to avoid excess allocations by firewave · Pull Request #4158 · cppcheck-opensource/cppcheck · GitHub
Open Graph Title: astutils.h: reserve `std::vector` space in `visitAstNodes()` to avoid excess allocations by firewave · Pull Request #4158 · cppcheck-opensource/cppcheck
X Title: astutils.h: reserve `std::vector` space in `visitAstNodes()` to avoid excess allocations by firewave · Pull Request #4158 · cppcheck-opensource/cppcheck
Description: This is an intermediate solution until SmallVector is able to avoid these allocation when not utilizing Boost. As it already provides a sizable improvement without the need for any external dependency I decided to go with this for now. Testing an -O2 build with --enable=all --inconclusive on mame_regtest code (with some additional local speed hacks applied): GCC 11 37,875,483,481 -> 33,842,501,109 Clang 13 35,459,791,724 -> 28,694,901,787
Open Graph Description: This is an intermediate solution until SmallVector is able to avoid these allocation when not utilizing Boost. As it already provides a sizable improvement without the need for any external depende...
X Description: This is an intermediate solution until SmallVector is able to avoid these allocation when not utilizing Boost. As it already provides a sizable improvement without the need for any external depende...
Opengraph URL: https://github.com/cppcheck-opensource/cppcheck/pull/4158
X: @github
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:cdecea8d-02a0-ca20-9643-3f0852d3fef3 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 9FE0:2373EB:2EFB856:41BB4F5:6A4F6EE9 |
| html-safe-nonce | 5af517c22480a05b97f4a5e9e328a801e35745dfaf083484c7265b82781e6741 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5RkUwOjIzNzNFQjoyRUZCODU2OjQxQkI0RjU6NkE0RjZFRTkiLCJ2aXNpdG9yX2lkIjoiMzg1NTQ0NTQ4MzE1NDUzNDEyMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | a6cea2762311f05ede449c2e66367f7924625d2e4e340fdf1a8d4fc0336acd18 |
| hovercard-subject-tag | pull_request:952433875 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/cppcheck-opensource/cppcheck/pull/4158/files |
| twitter:image | https://avatars.githubusercontent.com/u/242857?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/242857?s=400&v=4 |
| og:image:alt | This is an intermediate solution until SmallVector is able to avoid these allocation when not utilizing Boost. As it already provides a sizable improvement without the need for any external depende... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b92d11c0aa4a77d54ef4af1078b6a15fb5a70a215b30c4ecf28889d5a8e656d9 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/cppcheck-opensource/cppcheck git https://github.com/cppcheck-opensource/cppcheck.git |
| octolytics-dimension-user_id | 278097703 |
| octolytics-dimension-user_login | cppcheck-opensource |
| octolytics-dimension-repository_id | 143131 |
| octolytics-dimension-repository_nwo | cppcheck-opensource/cppcheck |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 143131 |
| octolytics-dimension-repository_network_root_nwo | cppcheck-opensource/cppcheck |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 4b249b445842943ed31549e027f57a8ade9881ed |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width