I've been trying off and on for months to make this program I'm working on go faster. It basically involved squinting at a lot of profiler output, not learning anything, and randomly adding memoization hoping it would make a difference (it didn't).

Today I've been working on something else, and I accidentally made the program run four times faster.

I'm not sure what the moral of the story is (besides that I need a better profiling tool), but it made me happy so I thought I'd share.

(Side note: be very careful when using weak pointers. Yesterday my program was producing a different error every time it ran—a program that I thought was entirely deterministic, so this was very disconcerting—and I tracked it down to a weak table that shouldn't have been weak. D'oh!)
.

Most Popular Tags

Powered by Dreamwidth Studios

Style Credit

Expand Cut Tags

No cut tags