Commit 95cfecd5 by Maarten L. Hekkelman

pre allocate memory

parent 6274ee73
...@@ -1413,6 +1413,8 @@ DSSP_impl::DSSP_impl(const cif::datablock &db, int model_nr, int min_poly_prolin ...@@ -1413,6 +1413,8 @@ DSSP_impl::DSSP_impl(const cif::datablock &db, int model_nr, int min_poly_prolin
index_type index; index_type index;
mResidues.reserve(pdbx_poly_seq_scheme.size());
for (const auto &[asym_id, seq_id, pdb_strand_id, pdb_seq_num, pdb_ins_code] for (const auto &[asym_id, seq_id, pdb_strand_id, pdb_seq_num, pdb_ins_code]
: pdbx_poly_seq_scheme.rows<std::string,int, std::string, int, std::string>("asym_id", "seq_id", "pdb_strand_id", "pdb_seq_num", "pdb_ins_code")) : pdbx_poly_seq_scheme.rows<std::string,int, std::string, int, std::string>("asym_id", "seq_id", "pdb_strand_id", "pdb_seq_num", "pdb_ins_code"))
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment