thingdom/node-neo4j — Issue #17: Provide compilation to reduce loading time.
Author: vjeux
Created: 2012-02-10 10:09:24+00:00
State: open

Executing the following line takes more than 3 seconds to execute on my server. This is too slow to be acceptable.

```javascript
var neo4j = require('neo4j');
```

This huge delay is caused by ```streamline```. It reparses the whole library everytime you require neo4j.

How to fix:

```bash
cd node_modules/neo4j/lib
../node_modules/coffee-script/bin/coffee -c *.coffee
../node_modules/streamline/bin/node-streamline -c *.js
# Manually replace all require('blabla_') by require('blabla')
```

It would be really great if you could provide the compiled files in NPM :)

Thanks