{"id":16499307,"url":"https://github.com/tpapp/pushvectors.jl","last_synced_at":"2025-03-01T18:20:27.544Z","repository":{"id":55588520,"uuid":"184049034","full_name":"tpapp/PushVectors.jl","owner":"tpapp","description":"workaround for julia#24909","archived":false,"fork":false,"pushed_at":"2020-12-20T09:18:05.000Z","size":18,"stargazers_count":9,"open_issues_count":3,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T01:52:03.508Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Julia","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/tpapp.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-04-29T10:19:48.000Z","updated_at":"2021-07-19T16:47:46.000Z","dependencies_parsed_at":"2022-08-15T03:50:21.132Z","dependency_job_id":null,"html_url":"https://github.com/tpapp/PushVectors.jl","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FPushVectors.jl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FPushVectors.jl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FPushVectors.jl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tpapp%2FPushVectors.jl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tpapp","download_url":"https://codeload.github.com/tpapp/PushVectors.jl/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241404939,"owners_count":19957732,"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":[],"created_at":"2024-10-11T14:52:03.851Z","updated_at":"2025-03-01T18:20:27.517Z","avatar_url":"https://github.com/tpapp.png","language":"Julia","funding_links":[],"categories":[],"sub_categories":[],"readme":"# PushVectors\n\n![Lifecycle](https://img.shields.io/badge/lifecycle-experimental-orange.svg)\u003c!--\n![Lifecycle](https://img.shields.io/badge/lifecycle-maturing-blue.svg)\n![Lifecycle](https://img.shields.io/badge/lifecycle-stable-green.svg)\n![Lifecycle](https://img.shields.io/badge/lifecycle-retired-orange.svg)\n![Lifecycle](https://img.shields.io/badge/lifecycle-archived-red.svg)\n![Lifecycle](https://img.shields.io/badge/lifecycle-dormant-blue.svg) --\u003e\n[![Build Status](https://travis-ci.com/tpapp/PushVectors.jl.svg?branch=master)](https://travis-ci.com/tpapp/PushVectors.jl)\n[![codecov.io](http://codecov.io/github/tpapp/PushVectors.jl/coverage.svg?branch=master)](http://codecov.io/github/tpapp/PushVectors.jl?branch=master)\n\nImplement a workaround for [julia#24909](https://github.com/JuliaLang/julia/issues/24909), using a [suggestion](https://github.com/JuliaLang/julia/issues/24909#issuecomment-419731925) by @KristofferC (code used with permission, modified by @tpapp, who is responsible for all bugs etc).\n\n## Should I use this package?\n\nProbably not, unless `push!` to `Vector` is **the** bottleneck in your code.\n\nThis is just a demonstration, and will be deprecated when the issue above is fixed.\n\n## Overview\n\nThe single exported type is `PushVector`, which can be `push!`ed to. Use `finish!` to shrink and obtain the final vector, but note that you should not use the original after that.\n\n```julia\njulia\u003e v = PushVector{Int}()\n0-element PushVector{Int64,Array{Int64,1}}\n\njulia\u003e push!(v, 1)\n1-element PushVector{Int64,Array{Int64,1}}:\n 1\n\njulia\u003e finish!(v)\n1-element Array{Int64,1}:\n 1\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Fpushvectors.jl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftpapp%2Fpushvectors.jl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftpapp%2Fpushvectors.jl/lists"}