cytoscape / cyREST

Core App: REST API module for Cytoscape
https://github.com/cytoscape/cyREST/wiki
MIT License
30 stars 13 forks source link

CyREST starts very slowly on Windows machines #102

Open dotasek opened 4 years ago

dotasek commented 4 years ago

On Ubuntu systems, the CyREST bundle reports 4 seconds of startup time in the framework log.

On Windows, this stretches out to 40 seconds.

Originally reported by the StringApp group.

dotasek commented 4 years ago

In Cytoscape 3.7.x, the largest visible culprit is loading the cytoscape-jetty feature, which takes the bulk of the load time. This was a necessary evil because the versions of Karaf in Cytoscape 3.7.x didn't contain the necessary jetty updates CyREST needed.

In Cytoscape 3.8.0, we can switch to Karaf's newly updated jetty; this results in a faster (16 second) load time. This was implemented in af40461290466fe34ad54935289249e5653e9fad

We may be able to further speed things up by updating the jersey-min bundles, a task which we should be attending to anyway.