Creating schema_validator on each request slows down websocket transport

Bug #1526002 reported by Eva Balycheva on 2015-12-14
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
zaqar
Undecided
Eva Balycheva

Bug Description

See https://github.com/openstack/zaqar/blob/stable/liberty/zaqar/api/handler.py#L55

I think it would be more effective to create schema_validator once and process all requests by using this single instance instead of recreating it on each incoming request.

I don't know how much it will increase the performance, since there is no benchmark for websocket transport of Zaqar.

Eva Balycheva (ubershy) on 2015-12-14
Changed in zaqar:
assignee: nobody → Eva Balycheva (ubershy)
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers