mirror of
https://github.com/jarun/nnn.git
synced 2024-11-28 05:41:31 +00:00
Update memory usage (latest release)
This commit is contained in:
parent
342ecdc3ef
commit
3c612fe64d
|
@ -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
|
||||
|
|
5
nnn.c
5
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;
|
||||
|
|
Loading…
Reference in a new issue