Fix performance regression on files/directories
modified libpkg/pkg.c
@@ -739,7 +739,7 @@ pkg_addfile_attr(struct pkg *pkg, const char *path, const char *sum,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -842,7 +842,7 @@ pkg_adddir_attr(struct pkg *pkg, const char *path, const char *uname,
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1784,7 +1784,7 @@ pkg_message_from_ucl(struct pkg *pkg, const ucl_object_t *obj)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1825,7 +1825,7 @@ pkg_message_from_ucl(struct pkg *pkg, const ucl_object_t *obj)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
@@ -1839,7 +1839,7 @@ pkg_message_from_ucl(struct pkg *pkg, const ucl_object_t *obj)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/pkg_printf.c
@@ -1066,7 +1066,7 @@ format_files(struct sbuf *sbuf, const void *data, struct percent_esc *p)
|
|
|
|
|
|
| - | |
| + | |
|
|
|
|
|
modified libpkg/private/pkg.h
@@ -42,6 +42,7 @@
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -288,6 +289,7 @@ struct pkg_message {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -313,6 +315,7 @@ struct pkg_file {
|
|
|
|
|
|
| + | |
|
|
|
|
|
@@ -322,6 +325,7 @@ struct pkg_dir {
|
|
|
|
|
|
| + | |
|
|
|
|
|