rails wiki site - article edit highlighting/strikethrough with htmldiff maxes cpu

Posted by mark on Stack Overflow See other posts from Stack Overflow or by mark
Published on 2010-06-13T15:43:05Z Indexed on 2010/06/13 15:52 UTC
Read the original article Hit count: 326

Hi

I'm implementing a wiki style site and want to highlight changes made to articles between successive versions. Using htmldiff to highlight changes works great, except it is rather cpu intensive. I'm using the awesome vestal_versions plugin for versioning.

So how best to handle this? I considered having an on_create callback on version creation create a delayed job that processes and then stores the htmldiff processed article (in the version table row).

If this is a good approach, how can I extend vestal_versions without touching the gem? Or maybe there would be a better approach.

Any advice is much appreciated. :)

© Stack Overflow or respective owner

Related posts about ruby-on-rails

Related posts about versioning