bridgetown
bridgetown copied to clipboard
perf: Pagination slows down with many thousands of posts
Trying out a benchmark with around 2000 posts and the difference with pagination off vs on goes from <10 seconds to around 50 seconds! I've noticed a bunch of data loops in the pagination code that seem ripe for optimization and/or caching, so I'll start there and see if we can knock this build time way down.
I'm going to leave this in place for now even with #12 addressing some of the performance issues, until we can do further stress testing.