diff --git a/README.md b/README.md index 610ab4c8..c317a247 100644 --- a/README.md +++ b/README.md @@ -18,23 +18,11 @@ Starting with v0.2.0, *ALL* configuration is done via `filebrowser.yaml` configu This fork makes the following significant changes to filebrowser for origin: 1. [x] Improves search to use index instead of filesystem. - - [x] Lightning fast - - [x] Realtime results as you type - - [x] Works with file type filter - - [x] better desktop search view - 1. [x] Preview enhancements - - Preview default view is constrained to files subwindow, - which can be toggled to fullscreen. - 1. [x] Improved and simplified GUI - - Moved all action buttons to file action bar except for switch-view - - Simplified navbar to 3 main actions: settings,search, and switch-view - - New search view on desktop - 1. [x] Updated version and dependencies - - [x] Uses latest npm and node version - - [x] Removes deprecated npm packages - - [x] Updates golang dependencies - - [x] Remove all unnecessary packages, replaces with generic functions. - 1. [x] **IMPORTANT** Moved all configurations to `filebrowser.yaml`. no more flags or binary operations to db + - Lightning fast, realtime results as you type + - Works with more type filters + 1. [x] Improved and simplified GUI navbar and sidebar menu. + 1. [x] Updated version and dependencies. + 1. [x] **IMPORTANT** Moved all configurations to `filebrowser.yaml`. ## About @@ -48,10 +36,6 @@ work better in terms of asthetics and performance. Improved search, simplified ui (without removing features) and more secure and up-to-date build are just a few examples. -There are a few more changes needed to get it to a stable status where it -will only recieve security updates. These changes are mentioned above. -Once this is fully complete, the only updates to th - ## Look

@@ -60,9 +44,9 @@ Once this is fully complete, the only updates to th

-## Performance +## Search Performance -Search Performance - 100x faster search. However, this will be at expense of RAM. if you have < 1 million +100x faster search. However, this will be at expense of RAM. if you have < 1 million files and folders in the given scope, the RAM usage should be less than 200MB total. RAM requirements should scale based on the number of directories. diff --git a/backend/benchmark_results.txt b/backend/benchmark_results.txt index 655b1f9c..962ad6ff 100644 --- a/backend/benchmark_results.txt +++ b/backend/benchmark_results.txt @@ -5,38 +5,38 @@ ? github.com/gtsteffaniak/filebrowser/auth [no test files] ? github.com/gtsteffaniak/filebrowser/cmd [no test files] PASS -ok github.com/gtsteffaniak/filebrowser/diskcache 0.004s +ok github.com/gtsteffaniak/filebrowser/diskcache 0.003s ? github.com/gtsteffaniak/filebrowser/errors [no test files] ? github.com/gtsteffaniak/filebrowser/files [no test files] PASS -ok github.com/gtsteffaniak/filebrowser/fileutils 0.004s -2023/09/02 19:15:20 h: 401 -2023/09/02 19:15:20 h: 401 -2023/09/02 19:15:20 h: 401 -2023/09/02 19:15:20 h: 401 -2023/09/02 19:15:20 h: 401 -2023/09/02 19:15:20 h: 401 +ok github.com/gtsteffaniak/filebrowser/fileutils 0.003s +2023/09/10 09:17:55 h: 401 +2023/09/10 09:17:55 h: 401 +2023/09/10 09:17:55 h: 401 +2023/09/10 09:17:56 h: 401 +2023/09/10 09:17:56 h: 401 +2023/09/10 09:17:56 h: 401 PASS -ok github.com/gtsteffaniak/filebrowser/http 0.094s +ok github.com/gtsteffaniak/filebrowser/http 0.082s PASS -ok github.com/gtsteffaniak/filebrowser/img 0.122s +ok github.com/gtsteffaniak/filebrowser/img 0.118s PASS ok github.com/gtsteffaniak/filebrowser/rules 0.002s PASS -ok github.com/gtsteffaniak/filebrowser/runner 0.004s +ok github.com/gtsteffaniak/filebrowser/runner 0.003s goos: linux goarch: amd64 pkg: github.com/gtsteffaniak/filebrowser/search cpu: 11th Gen Intel(R) Core(TM) i5-11320H @ 3.20GHz -BenchmarkSearchAllIndexes-8 10 5176084 ns/op 2743632 B/op 42785 allocs/op -BenchmarkFillIndex-8 10 3263308 ns/op 18485 B/op 453 allocs/op +BenchmarkSearchAllIndexes-8 10 5311144 ns/op 2934075 B/op 44569 allocs/op +BenchmarkFillIndex-8 10 3142607 ns/op 18473 B/op 452 allocs/op PASS -ok github.com/gtsteffaniak/filebrowser/search 0.109s +ok github.com/gtsteffaniak/filebrowser/search 0.110s PASS -ok github.com/gtsteffaniak/filebrowser/settings 0.004s +ok github.com/gtsteffaniak/filebrowser/settings 0.005s ? github.com/gtsteffaniak/filebrowser/share [no test files] ? github.com/gtsteffaniak/filebrowser/storage [no test files] ? github.com/gtsteffaniak/filebrowser/storage/bolt [no test files] PASS -ok github.com/gtsteffaniak/filebrowser/users 0.004s +ok github.com/gtsteffaniak/filebrowser/users 0.003s ? github.com/gtsteffaniak/filebrowser/version [no test files] diff --git a/backend/settings/settings_test.go b/backend/settings/settings_test.go index 7eefacd7..e2c192ee 100644 --- a/backend/settings/settings_test.go +++ b/backend/settings/settings_test.go @@ -9,8 +9,7 @@ import ( ) func TestConfigLoadChanged(t *testing.T) { - configYml = "./testingConfig.yaml" - yamlData := loadConfigFile() + yamlData := loadConfigFile("./testingConfig.yaml") // Marshal the YAML data to a more human-readable format newConfig := setDefaults() GlobalConfiguration := setDefaults() @@ -26,8 +25,7 @@ func TestConfigLoadChanged(t *testing.T) { } func TestConfigLoadSpecificValues(t *testing.T) { - configYml = "./testingConfig.yaml" - yamlData := loadConfigFile() + yamlData := loadConfigFile("./testingConfig.yaml") // Marshal the YAML data to a more human-readable format newConfig := setDefaults() GlobalConfiguration := setDefaults() diff --git a/backend/storage/bolt/config.go b/backend/storage/bolt/config.go index cb4914c6..b9f293da 100644 --- a/backend/storage/bolt/config.go +++ b/backend/storage/bolt/config.go @@ -20,7 +20,7 @@ func (s settingsBackend) Save(set *settings.Settings) error { func (s settingsBackend) GetServer() (*settings.Server, error) { server := &settings.Server{ - Port: 8080, + Port: 8080, NumImageProcessors: 1, } return server, get(s.db, "server", server)