See my [previous comment](https://github.com/Freeseer/freeseer/pull/404#discussion_r7389994). You're calculating the length in multiple places throughout the code even though it doesn't change when processing the feed. Better to calculate it once, store it in some class attribute, and call it when needed.