Asciidoctor Java realtime?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Asciidoctor Java realtime?

mschipperheyn
Hi,

I'm considering using Asciidoctor as a way to allow end users to enter "simple" markup (bold text, bullets etc. Nothing fancy) and have that rendered to HTML "on the fly". We use Java. I'm wondering if Asciidoctor is up for this in terms of performance, concurrency etc?

I know there is a method that renders strings but the bulk of thing I read is about converting documentation files. Also, I'm wondering about the Java - ruby toolchain in this context.

Any suggestions?

Kind regards,
Marc
Reply | Threaded
Open this post in threaded view
|

Re: Asciidoctor Java realtime?

asotobu
Yes the AsciidoctorJ is pretty fast, moreover if you configure it as suggested on performance section of asciidoctorj (https://github.com/asciidoctor/asciidoctorj#optimization).
For example rendering asciidoctor documentation it takes 256ms. The only problem is startup time which takes about 1500 ms. But you only have to start it once per application.

So I think you can use it without any problem if this times fits for you.