Package: hnb
Version: 1.9.18-10
Severity: wishlist
Tags: patch

Dear Maintainer,
*** Please consider answering these questions, where appropriate ***

   * What led up to the situation?

working on heavy loaded system (in particular IO)


   * What exactly did you do (or not do) that was effective (or
     ineffective)?

if you press enter after editing a note, it's doing a "sync"

   * What was the outcome of this action?

super slow to be able to work again, after each enter it ask to sync

   * What outcome did you expect instead?

immediate return and being able to work



can we make this a config parameter ? I believe it's a very rare
for an app to call sync after each small edit. it's supposing the 
computer will reboot without flushing it's cache any moment now.
which is not usually the case. only mysql or other db's have such
a "data integrity" feature.

thanks


-- System Information:
Debian Release: jessie/sid
  APT prefers testing
  APT policy: (900, 'testing'), (600, 'unstable'), (449, 'experimental')
Architecture: amd64 (x86_64)
Foreign Architectures: i386

Kernel: Linux 3.13-1-amd64 (SMP w/8 CPU cores)
Locale: LANG=en_CA.UTF-8, LC_CTYPE=en_CA.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

Versions of packages hnb depends on:
ii  libc6         2.17-97
ii  libncursesw5  5.9+20140118-1
ii  libtinfo5     5.9+20140118-1

hnb recommends no packages.

hnb suggests no packages.

-- no debconf information
Binary files hnb-1.9.18-orig/debian/hnb/usr/bin/hnb and hnb-1.9.18/debian/hnb/usr/bin/hnb differ
diff -ru hnb-1.9.18-orig/.pc/09_make_all_callbacks_return_void.patch/src/autosave.c hnb-1.9.18/.pc/09_make_all_callbacks_return_void.patch/src/autosave.c
--- hnb-1.9.18-orig/.pc/09_make_all_callbacks_return_void.patch/src/autosave.c	2003-08-26 22:50:59.000000000 -0400
+++ hnb-1.9.18/.pc/09_make_all_callbacks_return_void.patch/src/autosave.c	2014-03-24 09:46:45.786398075 -0400
@@ -30,7 +30,7 @@
 static int autosave_threshold=0;   /* autosave for every autosave_threshold nodes_changed */
 static int autosave_timeout=50;    /* ticks to wait for autosaving, if there is nodes changed */
 static int autosave_timer=0;
-static int autosave_sync=1;
+static int autosave_sync=0;
 
 static void autosave_invoke(Node *pos){
 
Binary files hnb-1.9.18-orig/src/actions.o and hnb-1.9.18/src/actions.o differ
diff -ru hnb-1.9.18-orig/src/autosave.c hnb-1.9.18/src/autosave.c
--- hnb-1.9.18-orig/src/autosave.c	2014-03-24 09:48:53.000000000 -0400
+++ hnb-1.9.18/src/autosave.c	2014-03-24 09:46:32.050398015 -0400
@@ -30,7 +30,7 @@
 static int autosave_threshold=0;   /* autosave for every autosave_threshold nodes_changed */
 static int autosave_timeout=50;    /* ticks to wait for autosaving, if there is nodes changed */
 static int autosave_timer=0;
-static int autosave_sync=1;
+static int autosave_sync=0;
 
 static void autosave_invoke(Node *pos){

Reply via email to