Skip to content

Commit

Permalink
packed_vector insert/push_back optimization
Browse files Browse the repository at this point in the history
  • Loading branch information
Christopher Barber committed May 6, 2019
1 parent 7ed75ca commit 5b7c90b
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions include/internal/packed_vector.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -459,6 +459,11 @@ namespace dyn{

void insert(uint64_t i, uint64_t x){

if(i==size()){
push_back(x);
return;
}

if(bitsize(x)>width_){

//auto vec = to_vector(i,x);
Expand Down

0 comments on commit 5b7c90b

Please sign in to comment.