grantovich/CSH-WebNews — Issue #50: WebNews is Usually CPU-Bound on Server
Author: clockfort
Created: 2012-01-26 21:54:43+00:00
State: open

Specifically it's quite slow/CPU bound while loading lists of posts initially as you click on different newsgroups. I'd be extremely interested in seeing as to why.

WebNews is slow, but it's apparently not because it's waiting for a database or disk access, it's just spinning the CPU for ~2 seconds+ with every request for lists of posts.

Maybe you could add one of the umpteen million rack/ruby profilers and look at which functions are slowing it down so much? It's really just the initial getting-the-list-of-posts that is annoyingly slow; it seems plenty rapid at fetching a specific post as soon as you click on it from that list.