Skip to content

Commit

Permalink
NodeTreeBase: Get rid of freeing memory from init_loading() to reuse …
Browse files Browse the repository at this point in the history
…buffers (#1152)

確保したバッファを再利用するためロード実行前に呼ぶ初期化関数から
メモリを開放する処理を取り除きます。
  • Loading branch information
ma8ma committed Apr 29, 2023
1 parent 903aa87 commit da8ff69
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dbtree/nodetreebase.cpp
Expand Up @@ -1123,7 +1123,7 @@ void NodeTreeBase::set_resume_data( const char* data, size_t length )
//
void NodeTreeBase::init_loading()
{
clear();
m_buffer_lines.clear();

// 一時バッファ作成
if( m_buffer_lines.capacity() < MAXSISE_OF_LINES ) {
Expand Down

0 comments on commit da8ff69

Please sign in to comment.