Skip to content

Commit

Permalink
Reduce CPU load in the log viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
alabuzhev committed Jul 22, 2021
1 parent 9abcd19 commit bb5542e
Show file tree
Hide file tree
Showing 11 changed files with 25 additions and 20 deletions.
6 changes: 3 additions & 3 deletions far/FarCze.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -695,11 +695,11 @@ vykonán ~přiřazený příkaz~@FileAssoc@, nebo je otevřen archív.
command configuration.

Změní na rodičovský adresář #Ctrl+PgUp#
The behavior in root folders depends on "Use Ctrl+PgUp to change drive~@InterfSettings@" option.
The behavior in root folders depends on "~Use Ctrl+PgUp to change drive~@InterfSettings@" option.

Vytvoří skratku na aktuální adresář #Ctrl+Shift+0…9#
Vytvoří skratku na aktuální adresář #Ctrl+Shift+0…9#

Použití adresářové skratky #RightCtrl+0…9#
Použití adresářové skratky #RightCtrl+0…9#

Nastavení ~atributů souboru~@FileAttrDlg@ #Ctrl+A#

Expand Down
6 changes: 3 additions & 3 deletions far/FarEng.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -683,11 +683,11 @@ an ~associated command~@FileAssoc@ is executed or the archive is opened.
command configuration.

Change to the parent folder #Ctrl+PgUp#
The behavior in root folders depends on "Use Ctrl+PgUp to change drive~@InterfSettings@" option.
The behavior in root folders depends on "~Use Ctrl+PgUp to change drive~@InterfSettings@" option.

Create shortcut to the current folder #Ctrl+Shift+0…9#
Create shortcut to the current folder #Ctrl+Shift+0…9#

Use folder shortcut #RightCtrl+0…9#
Use folder shortcut #RightCtrl+0…9#

Set ~file attributes~@FileAttrDlg@ #Ctrl+A#

Expand Down
2 changes: 1 addition & 1 deletion far/FarGer.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -694,7 +694,7 @@ an ~associated command~@FileAssoc@ is executed or the archive is opened.
command configuration.

Ins übergeordnete verzeichnis wechseln #Strg+Bild↑#
The behavior in root folders depends on "Use Ctrl+PgUp to change drive~@InterfSettings@" option.
The behavior in root folders depends on "~Use Ctrl+PgUp to change drive~@InterfSettings@" option.

Kürzel <Nr> für aktuelles Verzeichnis anlegen #Strg+Umsch+0…9#

Expand Down
2 changes: 1 addition & 1 deletion far/FarHun.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -701,7 +701,7 @@ kurzor fájlon áll, a fájl típusához ~társított parancsot~@FileAssoc@ hajt
végre, vagy belép a tömörítettbe.

Visszalépés a szülőmappába #Ctrl+PgUp#
The behavior in root folders depends on "Use Ctrl+PgUp to change drive~@InterfSettings@" option.
The behavior in root folders depends on "~Use Ctrl+PgUp to change drive~@InterfSettings@" option.

Gyorsbillentyűt rendel az aktuális mappához #Ctrl+Shift+0…9#

Expand Down
6 changes: 3 additions & 3 deletions far/FarPol.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -681,11 +681,11 @@ wywoływane jest ~powiązane polecenie~@FileAssoc@ lub otwierane jest archiwum.
#Ctrl+Shift+PgDn# zawsze otwiera archiwum, niezależnie od powiązanego polecenia.

Przejdź do folderu nadrzędnego #Ctrl+PgUp#
Zachowanie w folderach głównych zależy od opcji "Użyj Ctrl+PgUp aby zmienić dysk~@InterfSettings@".
Zachowanie w folderach głównych zależy od opcji "~Użyj Ctrl+PgUp aby zmienić dysk~@InterfSettings@".

Utwórz skrót do bieżącego folderu #Ctrl+Shift+0…9#
Utwórz skrót do bieżącego folderu #Ctrl+Shift+0…9#

Użyj skrótu do folderu #RightCtrl+0…9#
Użyj skrótu do folderu #RightCtrl+0…9#

Ustaw ~atrybuty pliku~@FileAttrDlg@ #Ctrl+A#

Expand Down
4 changes: 2 additions & 2 deletions far/FarRus.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -703,9 +703,9 @@ $ #Команды управления панелями - сервисные к
Перейти в папку уровнем выше #Ctrl+PgUp#
Поведение в корневой папке зависит от опции "~Использовать Ctrl+PgUp для выбора диска~@InterfSettings@".

Создать ссылку на текущую папку #Ctrl+Shift+0…9#
Создать ссылку на текущую папку #Ctrl+Shift+0…9#

Использовать ссылку на папку #ПравыйCtrl+0…9#
Использовать ссылку на папку #ПравыйCtrl+0…9#

Установить ~файловые атрибуты~@FileAttrDlg@ #Ctrl+A#

Expand Down
2 changes: 1 addition & 1 deletion far/FarSky.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -680,7 +680,7 @@ an ~associated command~@FileAssoc@ is executed or the archive is opened.
command configuration.

Zmena adresára na rodičovský (o stupeň vyššie) #Ctrl+PgUp#
The behavior in root folders depends on "Use Ctrl+PgUp to change drive~@InterfSettings@" option.
The behavior in root folders depends on "~Use Ctrl+PgUp to change drive~@InterfSettings@" option.

Vytvorenie skratky k aktuálnemu adresáru #Ctrl+Shift+0…9#

Expand Down
4 changes: 2 additions & 2 deletions far/FarUkr.hlf.m4
Original file line number Diff line number Diff line change
Expand Up @@ -690,9 +690,9 @@ Shift+Enter на папці з іменем "#..#" відкриває у Про
Перейти до папки рівнем вище #Ctrl+PgUp#
На Ctrl+PgUp у кореневій папці впливає опція "~Використовувати Ctrl+PgUp для вибору диска~@InterfSettings@".

Створити посилання на поточну папку #Ctrl+Shift+0…9#
Створити посилання на поточну папку #Ctrl+Shift+0…9#

Використати посилання на папку #ПравийCtrl+0…9#
Використати посилання на папку #ПравийCtrl+0…9#

Встановити ~атрибути файлів~@FileAttrDlg@ #Ctrl+A#

Expand Down
5 changes: 5 additions & 0 deletions far/changelog
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
--------------------------------------------------------------------------------
drkns 22.07.2021 19:50:21 +0100 - build 5853

1. Reduce CPU load in the log viewer.

--------------------------------------------------------------------------------
drkns 20.07.2021 17:48:06 +0100 - build 5852

Expand Down
6 changes: 3 additions & 3 deletions far/log.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -321,11 +321,11 @@ namespace
{
console.SetActiveScreenBuffer(m_Buffer.native_handle());

const time_check TimeCheck;

for (;;)
{
if (TimeCheck && CheckForEscSilent())
os::handle::wait_all({ console.GetInputHandle() });

if (CheckForEscSilent())
{
console.SetActiveScreenBuffer(console.GetOutputHandle());
return;
Expand Down
2 changes: 1 addition & 1 deletion far/vbuild.m4
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5852
5853

0 comments on commit bb5542e

Please sign in to comment.