Skip to content
Snippets Groups Projects
This project is mirrored from https://github.com/gohugoio/hugo. Pull mirroring updated .
  1. Jun 13, 2017
  2. Jun 12, 2017
  3. Jun 11, 2017
  4. Jun 09, 2017
  5. Jun 08, 2017
  6. Jun 07, 2017
  7. Jun 06, 2017
  8. Jun 05, 2017
  9. Jun 03, 2017
    • Nathan Sharfi's avatar
      tpl: Add uniq function · e28d9aa4
      Nathan Sharfi authored
      e28d9aa4
    • bep's avatar
      hugolib: Remove some superflous TODO comments · 46b46078
      bep authored
      46b46078
    • bep's avatar
      parser: Add horizontal YAML tags to benchmark · 2c2ce33a
      bep authored
      2c2ce33a
    • jeremielondon's avatar
      adc0572d
    • bep's avatar
      all: Temporarily revert to BurntSushi for TOML front matter handling · 0907a5c1
      bep authored
      We still have go-toml as a transitive dependency, and it is the way to go eventually, but we care about speed, so let us wait that one out.
      
      Note that the issue this fixes is about taxonomies, but I guess this is a general issue for sites with many pages that uses TOML as front matter.
      
      ```
      benchmark                              old ns/op     new ns/op     delta
      BenchmarkFrontmatterTags/TOML:1-4      23206         8543          -63.19%
      BenchmarkFrontmatterTags/TOML:11-4     80117         18495         -76.92%
      BenchmarkFrontmatterTags/TOML:21-4     140676        28727         -79.58%
      
      benchmark                              old allocs     new allocs     delta
      BenchmarkFrontmatterTags/TOML:1-4      173            60             -65.32%
      BenchmarkFrontmatterTags/TOML:11-4     625            138            -77.92%
      BenchmarkFrontmatterTags/TOML:21-4     1106           210            -81.01%
      
      benchmark                              old bytes     new bytes     delta
      BenchmarkFrontmatterTags/TOML:1-4      9231          2912          -68.45%
      BenchmarkFrontmatterTags/TOML:11-4     19808         5184          -73.83%
      BenchmarkFrontmatterTags/TOML:21-4     31200         7536          -75.85%
      ```
      
      See #3541
      Updates #3464
      0907a5c1
    • bep's avatar
      parser: Add BenchmarkFrontmatterTags · 3d9c4f51
      bep authored
      The list handling is surprisingly expensive:
      
      ```
      :arrow_forward: go test -run="NONE" -bench="BenchmarkFrontmatterTags" -test.benchmem=true ./parser | prettybench
      PASS
      benchmark                               iter         time/iter   bytes alloc           allocs
      ---------                               ----         ---------   -----------           ------
      BenchmarkFrontmatterTags/JSON:1-4    1000000     2039.00 ns/op      912 B/op     20 allocs/op
      BenchmarkFrontmatterTags/JSON:11-4    300000     5202.00 ns/op     1640 B/op     44 allocs/op
      BenchmarkFrontmatterTags/JSON:21-4    200000     7993.00 ns/op     2392 B/op     65 allocs/op
      BenchmarkFrontmatterTags/YAML:1-4     200000     9359.00 ns/op     5928 B/op     66 allocs/op
      BenchmarkFrontmatterTags/YAML:11-4    100000    21218.00 ns/op     8408 B/op    140 allocs/op
      BenchmarkFrontmatterTags/YAML:21-4     50000    32852.00 ns/op    10920 B/op    211 allocs/op
      BenchmarkFrontmatterTags/TOML:1-4     100000    21505.00 ns/op     9231 B/op    173 allocs/op
      BenchmarkFrontmatterTags/TOML:11-4     20000    82919.00 ns/op    19808 B/op    625 allocs/op
      BenchmarkFrontmatterTags/TOML:21-4     10000   141847.00 ns/op    31200 B/op   1106 allocs/op
      ok      github.com/spf13/hugo/parser    17.890s
      ```
      
      See #3464
      3d9c4f51
  10. Jun 02, 2017
Loading