zotero / citeproc-js-server

Web service to generate citations and bibliographies using citeproc-js
Other
60 stars 39 forks source link

Support simultaneous xml and json operation #19

Closed fcheslack closed 9 years ago

fcheslack commented 9 years ago

Styles/locales converted to JSON are much faster to initialize, and somewhat faster to execute. Simply converting any changed styles to JSON via the included python script when they're periodically pulled from the repo generally works until we get to the case of remote styles.

This is also complicated by citeproc-js and the way nodejs modules work. The top level CSL object we use is a singleton within the module, and can't trivially have multiple instances with different parsers running.

fcheslack commented 9 years ago

Significantly better performance from always running in JSON mode, even when converting the xml to JS objects on the fly.