From cda62c4f6a5e2aa4d9025990a7687a8d1433d259 Mon Sep 17 00:00:00 2001 From: dd84ai Date: Fri, 29 Mar 2024 11:14:26 +0100 Subject: [PATCH] refactor: bump to optimized fl-configs --- go.mod | 2 +- go.sum | 2 ++ main.go | 10 ++++++++-- 3 files changed, 11 insertions(+), 3 deletions(-) diff --git a/go.mod b/go.mod index e618fd79..ddbac661 100644 --- a/go.mod +++ b/go.mod @@ -4,7 +4,7 @@ go 1.21.1 require ( github.com/a-h/templ v0.2.543 - github.com/darklab8/fl-configs v0.17.0 + github.com/darklab8/fl-configs v0.17.1 github.com/darklab8/go-typelog v0.6.0 github.com/darklab8/go-utils v0.12.0 github.com/yosssi/gohtml v0.0.0-20201013000340-ee4748c638f4 diff --git a/go.sum b/go.sum index afb32254..719347ed 100644 --- a/go.sum +++ b/go.sum @@ -4,6 +4,8 @@ github.com/darklab8/fl-configs v0.16.0 h1:eFv++nj/xZt8oc4foRshkVbtR64Bk0XDKSVXH1 github.com/darklab8/fl-configs v0.16.0/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY= github.com/darklab8/fl-configs v0.17.0 h1:WGnyR6s9dyOMhPIhf7DzYVFwO3VHexhWi4RLGW5+z1Y= github.com/darklab8/fl-configs v0.17.0/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY= +github.com/darklab8/fl-configs v0.17.1 h1:S12fnKenPCC4sEeSR8ifxEWRpt4H7UqjOHUFNm4wU5U= +github.com/darklab8/fl-configs v0.17.1/go.mod h1:8zaCaFL21TvawP65KB9NOJ+nEpaMDQYsnoOi77RiSVY= github.com/darklab8/go-typelog v0.6.0 h1:Ci8imc7ScXiy5e1qMgf46NyJjrqNLPoIE1gbVe7bxl4= github.com/darklab8/go-typelog v0.6.0/go.mod h1:AwwOf3dkp/tpevHFNbkB+PbwlDrUUgO1CVFkEnj+q5w= github.com/darklab8/go-utils v0.12.0 h1:LxsG3yVNf9W4xyV+tHPOaZB2ewItgM/1BzOXyKFvofs= diff --git a/main.go b/main.go index 6616aa68..591c1f93 100644 --- a/main.go +++ b/main.go @@ -36,8 +36,14 @@ func main() { case Web: var fs *builder.Filesystem time_measure.TimeMeasure(func(m *time_measure.TimeMeasurer) { - fs = linker.NewLinker().Link().BuildAll() - }) + var linked_build *builder.Builder + time_measure.TimeMeasure(func(m *time_measure.TimeMeasurer) { + linked_build = linker.NewLinker().Link() + }, time_measure.WithMsg("linking stuff")) + time_measure.TimeMeasure(func(m *time_measure.TimeMeasurer) { + fs = linked_build.BuildAll() + }, time_measure.WithMsg("building stuff")) + }, time_measure.WithMsg("total time for web")) web.NewWeb(fs).Serve() }