aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-07-05 08:17:51 +0530
committerGravatar Arun Prakash Jana <engineerarun@gmail.com>2017-07-05 08:20:40 +0530
commit3c612fe64d5814e4749ab5c0db0da1173489435d (patch)
treecb0a2550156a9409ee779cfa5a609572ef34dd34
parent342ecdc3efacd6d05c8a871a897e847b81570aac (diff)
downloadnnn-3c612fe64d5814e4749ab5c0db0da1173489435d.tar.gz
Update memory usage (latest release)
-rw-r--r--README.md6
-rw-r--r--nnn.c5
2 files changed, 5 insertions, 6 deletions
diff --git a/README.md b/README.md
index 386f753..e402006 100644
--- a/README.md
+++ b/README.md
@@ -96,12 +96,12 @@ Have fun with it! PRs are welcome. Check out [#1](https://github.com/jarun/nnn/i
### Performance
-`nnn` vs. ncdu memory usage while listing 438767 files in disk usage analyzer mode:
+`nnn` vs. ncdu memory usage in disk usage analyzer mode (438767 files on disk):
```
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
22515 vaio 20 0 60348 48712 2240 S 0.0 0.6 0:01.11 ncdu /
-22574 vaio 20 0 17588 4320 2584 S 0.0 0.1 0:00.44 nnn /
+28306 vaio 20 0 17644 4500 2708 S 0.0 0.1 0:00.52 nnn -S /
```
`nnn` vs. mc vs. ranger memory usage while viewing a directory with 11244 files, sorted by size:
@@ -110,7 +110,7 @@ Have fun with it! PRs are welcome. Check out [#1](https://github.com/jarun/nnn/i
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
28450 vaio 20 0 93848 51548 7724 S 0.0 0.6 0:00.64 /usr/bin/python -O /usr/bin/ranger
27265 vaio 20 0 67188 13620 6908 S 0.0 0.2 0:00.16 mc
-28360 vaio 20 0 20520 6932 2512 S 0.0 0.1 0:00.20 nnn
+27925 vaio 20 0 20608 7168 2648 S 0.0 0.1 0:00.30 nnn
```
### Installation
diff --git a/nnn.c b/nnn.c
index 92f74a8..394ead4 100644
--- a/nnn.c
+++ b/nnn.c
@@ -782,8 +782,7 @@ dentcpy(struct entry *dst, struct entry *src)
* Move non-matching entries to the end
*/
static void
-fill(struct entry **dents,
- int (*filter)(regex_t *, char *), regex_t *re)
+fill(struct entry **dents, int (*filter)(regex_t *, char *), regex_t *re)
{
static int count;
@@ -1856,7 +1855,7 @@ browse(char *ipath, char *ifilter)
char path[PATH_MAX], oldpath[PATH_MAX], newpath[PATH_MAX];
char lastdir[PATH_MAX];
char fltr[LINE_MAX];
- char *dir, *tmp, *run, *env, *tgt=NULL;
+ char *dir, *tmp, *run, *env, *tgt = NULL;
struct stat sb;
int r, fd, presel;
enum action sel = SEL_RUNARG + 1;