Skip to content

Commit

Permalink
1.6.27b
Browse files Browse the repository at this point in the history
- solved #51 - find: don't load all 1000 rows into preview
- loading surrounding rows - on a different thread - so that i cna
increase the number of surrounding rows
  • Loading branch information
jtorjo committed Jan 20, 2016
1 parent 99af0a6 commit 83246f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions src/docs/history.txt
Original file line number Diff line number Diff line change
@@ -1,14 +1,16 @@

- find: don't load all 1000 rows into preview -> no point (takes too long for event log anyway)


- post on https://www.reddit.com/r/csharp/
https://news.ycombinator.com/news (9 jan 2016)
quora

- loading surrounding rows - on a different thread - so that i cna increase the number of surrounding rows



1.6.27b
- solved #51 - find: don't load all 1000 rows into preview
- loading surrounding rows - on a different thread - so that i cna increase the number of surrounding rows


1.6.27a
Expand Down
6 changes: 4 additions & 2 deletions src/lw_common/ui/search/search_form.cs
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,6 @@ private class item {
}
},1);

load_surrounding_rows(lv);
new Thread(do_searches_thread) {IsBackground = true }.Start();
}

Expand Down Expand Up @@ -254,7 +253,8 @@ private class item {
}
private void load_surrounding_rows(log_view lv) {

int sel = lv.sel_row_idx;
int sel = 0;
this.async_call_and_wait(() => sel = lv.sel_row_idx );
if (sel < 0)
sel = 0;
// get as many rows as possible, in both directions
Expand Down Expand Up @@ -370,6 +370,8 @@ private class item {
}

private void do_searches_thread() {
load_surrounding_rows(lv_);

try {
do_searches_thread_impl();
} catch (ObjectDisposedException) {
Expand Down

0 comments on commit 83246f3

Please sign in to comment.