Skip to content

Commit

Permalink
Decrease memory footprint during alignment
Browse files Browse the repository at this point in the history
  • Loading branch information
ch4rr0 committed Jul 4, 2020
1 parent 01182df commit cc62789
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 2 additions & 0 deletions pat.h
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,8 @@ struct PerThreadReadBuf {

PerThreadReadBuf(size_t max_buf) :
max_buf_(max_buf),
bufa_(max_buf),
bufb_(max_buf),
rdid_()
{
bufa_.resize(max_buf);
Expand Down
2 changes: 1 addition & 1 deletion read.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ struct HitSet;
*/
struct Read {

typedef SStringExpandable<char, 1024, 2, 1024> TBuf;
typedef SStringExpandable<char, 0, 2, 2048> TBuf;

Read() { reset(); }

Expand Down
8 changes: 4 additions & 4 deletions sstring.h
Original file line number Diff line number Diff line change
Expand Up @@ -3492,9 +3492,9 @@ class SDnaMaskString : public SStringExpandable<char, S, M> {
virtual const char* toZBuf() const { return this->toZBufXForm(iupacs); }
};

typedef SStringExpandable<char, 1024, 2> BTString;
typedef SDnaStringExpandable<1024, 2> BTDnaString;
typedef SDnaMaskString<32, 2> BTDnaMask;
typedef SString<char> BTRefString;
typedef SStringExpandable<char, 25, 2> BTString;
typedef SDnaStringExpandable<25, 2> BTDnaString;
typedef SDnaMaskString<32, 2> BTDnaMask;
typedef SString<char> BTRefString;

#endif /* SSTRING_H_ */

0 comments on commit cc62789

Please sign in to comment.