Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Cyborg)
  • No Skin
Collapse
Brand Logo

CIRCLE WITH A DOT

  1. Home
  2. Operating Systems
  3. BSD
  4. I'm testing the new BSSG test build.

I'm testing the new BSSG test build.

Scheduled Pinned Locked Moved BSD
bssgssgbashstaticsitegener
1 Cross-posts 4 Posts 2 Posters 1 Views
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • stefano@mastodon.bsd.cafeS This user is from outside of this forum
    stefano@mastodon.bsd.cafeS This user is from outside of this forum
    stefano@mastodon.bsd.cafe
    wrote last edited by
    #1

    I'm testing the new BSSG test build. I've been working on it for a while to refactor the build process and move it entirely to RAM (optionally, for now).
    On my OpenBSD Amsterdam VPS (single core, spinning drives), build times are cut down to less than a third of the last release, and on other devices it takes about half the time, with zero I/O.

    The current caching system isn't exactly rock-solid, and personally, I prefer a faster full build over maintaining all that complexity.

    I'll probably upload everything as soon as I've ironed out a couple of bugs, in the coming days.

    #BSSG #SSG #Bash #StaticSiteGenerator

    fcalva@cyberplace.socialF 1 Reply Last reply
    0
    • stefano@mastodon.bsd.cafeS stefano@mastodon.bsd.cafe

      I'm testing the new BSSG test build. I've been working on it for a while to refactor the build process and move it entirely to RAM (optionally, for now).
      On my OpenBSD Amsterdam VPS (single core, spinning drives), build times are cut down to less than a third of the last release, and on other devices it takes about half the time, with zero I/O.

      The current caching system isn't exactly rock-solid, and personally, I prefer a faster full build over maintaining all that complexity.

      I'll probably upload everything as soon as I've ironed out a couple of bugs, in the coming days.

      #BSSG #SSG #Bash #StaticSiteGenerator

      fcalva@cyberplace.socialF This user is from outside of this forum
      fcalva@cyberplace.socialF This user is from outside of this forum
      fcalva@cyberplace.social
      wrote last edited by
      #2

      @stefano How are you doing that in Bash ? Pipes ? Ramdisks ?

      stefano@mastodon.bsd.cafeS 1 Reply Last reply
      0
      • fcalva@cyberplace.socialF fcalva@cyberplace.social

        @stefano How are you doing that in Bash ? Pipes ? Ramdisks ?

        stefano@mastodon.bsd.cafeS This user is from outside of this forum
        stefano@mastodon.bsd.cafeS This user is from outside of this forum
        stefano@mastodon.bsd.cafe
        wrote last edited by
        #3

        @fcalva Not a tmpfs/ramdisk trick. This wouln't be portable. In ram mode I preload posts/pages/templates/locale once into process memory (mainly Bash associative arrays), then keep indexes and caches in memory too (file index, tags/authors/archive maps, related posts, RSS metadata). The build reads from those in-memory structures instead of doing intermediate cache I/O on disk.
        Only the final generated site is written to disk. So yes: mostly Bash arrays + in-memory shell processing (awk/sed), which is why it speeds up builds a lot on slow disks.

        fcalva@cyberplace.socialF 1 Reply Last reply
        0
        • stefano@mastodon.bsd.cafeS stefano@mastodon.bsd.cafe

          @fcalva Not a tmpfs/ramdisk trick. This wouln't be portable. In ram mode I preload posts/pages/templates/locale once into process memory (mainly Bash associative arrays), then keep indexes and caches in memory too (file index, tags/authors/archive maps, related posts, RSS metadata). The build reads from those in-memory structures instead of doing intermediate cache I/O on disk.
          Only the final generated site is written to disk. So yes: mostly Bash arrays + in-memory shell processing (awk/sed), which is why it speeds up builds a lot on slow disks.

          fcalva@cyberplace.socialF This user is from outside of this forum
          fcalva@cyberplace.socialF This user is from outside of this forum
          fcalva@cyberplace.social
          wrote last edited by
          #4

          @stefano Wow, i still have a lot to learn about Bash. Didn't even know there were data structures !

          1 Reply Last reply
          0
          • incentiveI incentive moved this topic from Uncategorized
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups