How can I improve Moose performance in non-persistent CGI processes?

前端 未结 6 1316
情歌与酒
情歌与酒 2021-02-06 00:13

Moose is a fantastic object framework. The trouble is that, taken together with its dependencies, it\'s very big. Our profiling indicates that on our platform, simply

6条回答
  •  清歌不尽
    2021-02-06 00:42

    My preference would be to drop vanilla CGI support. FCGI hosting is really cheap these days and there's no reason to pander to vanilla CGI (IMO) because it just reinforces the opinion that Perl is slow. But if you can't avoid it then you can use something like Object::Tiny. But if you need Roles, constraints, meta-programming and all the other loveliness that Moose provides, you're out of luck unless you drop vanilla CGI.

提交回复
热议问题